Subject: compile Maxima file containing a large list
From: Volker van Nek
Date: Mon, 6 Aug 2012 15:54:21 +0200
2012/8/6 Steve Haflich <smh at franz.com>
> Raymond Toy <toy.raymond at gmail.com> wrote:
>
> > CLISP:
> >
> > (1. 2. 3. 4. 5. 6. 7.)
>
> This is correct. A decimal point is allowed after an integer. If you
> try this in other lisps, you will see that they return an integer, not a
> float.
>
> It is _not_ allowed! In ANSI CL the decimal point is _required_ if
> *print-radix* is true, and _prohibited_ if it is false. The characters
> emitted by the printer for integers is entirely prescribed by the ANS.
> It appears for whatever reason *print-radix* is true in CLISP at the
> time that example was run.
>
>
For the record:
GNU CLISP 2.49
[1]> *print-radix*
NIL
[2]> (let ((*print-length* 3)
(list '(1 2 3 4 5)) )
(with-standard-io-syntax (print list))
(print list) )
(1. 2. 3. 4. 5.)
(1 2 3 ...)
(1 2 3 4 5)