Page 1 of 1

Problems with Dump ?

Posted: Mon Sep 10, 2007 9:31 am
by Maurizio
Just experimenting...
Seems that Dump interrupts dotimes evaluation

D:\Temp>newlisp
newLISP v.9.2.0 on Win32, execute 'newlisp -h' for more info.

> (dotimes (x 5) (dump 'a))
(4150824 69 4145160 4145160 4177016)
>

Regards
Maurizio

Posted: Mon Sep 10, 2007 3:30 pm
by Lutz
'dump' does not print, what you see is the return value from the 'dotimes' loop. This way you can see all of them:

Code: Select all

> (dotimes (x 5) (println (dump 'a)))
(260032 69 253952 253952 3158112)
(260032 69 253952 253952 3158112)
(260032 69 253952 253952 3158112)
(260032 69 253952 253952 3158112)
(260032 69 253952 253952 3158112)
(260032 69 253952 253952 3158112)
> 
Lutz

Posted: Tue Sep 11, 2007 9:45 am
by Maurizio
Thank you very much
Maurizio