Problems with Dump ?

Q&A's, tips, howto's
Locked
Maurizio
Posts: 52
Joined: Mon Jul 28, 2003 3:06 pm
Location: Italy

Problems with Dump ?

Post 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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Maurizio
Posts: 52
Joined: Mon Jul 28, 2003 3:06 pm
Location: Italy

Post by Maurizio »

Thank you very much
Maurizio

Locked