On 3/4/09, Dieter Kaiser <drdieterkaiser at web.de> wrote:
> With GCL 2.6.8 on a Windows XP system I get failures in the testsuite file
> rtest1.mac. This errors do not occur with CLISP 2.44 on my system.
It appears that GCL misreads floats when *READ-BASE* is other than 10.
CLHS says that *READ-BASE* has no effect on any numeric types other
than integers or ratios, so that seems to be a bug in GCL.
The bug is triggered in GCL by this program:
(setq *read-base* 2.)
(type-of (read-from-string "2.0d0"))
=> SYMBOL
I observe the problem in GCL 2.6.7 on Linux but not GCL 2.6.8pre on Windows.
I don't know if it's a difference between Linux and Windows or
between 2.6.7 and 2.6.8pre.
CMUCL, SBCL, and Clisp return a numeric value in the example above.
Not sure where to go from here.
Robert Dodier