Hi,

I've been tinkering with some picolisp code and in
investigating the use of "run" I am seeing an inconsistency
between the docs and my environment.

The 'cnt parameter does not seem to reference the nth call environment (see
full code at end).

In the example in the docs
the result is

..
(Prg (println (cons 'Prg Prg) (cons 'A A))) (A . 12)
(Prg . 77) (A . 99)
-> (A . 99)

whereas with version 24.9.28  my result is

..
(Prg (println (cons 'Prg Prg) (cons 'A A))) (A . 12)
(Prg (println (cons 'Prg Prg) (cons 'A A))) (A . 12)
-> (A . 12)

Am I doing something incorrectly or is the behavior different
than as documented.

Thanks!
Lindsay

: (version)
24.9.28
-> (24 9 28)
: (pp 'f)
(de f Prg
   (let (A 12)
      (println (cons 'Prg Prg) (cons 'A A))
      (run Prg 1) ) )
-> f
: (let (Prg 77 A 99) (f (println (cons 'Prg Prg) (cons 'A A)) ) )
(Prg (println (cons 'Prg Prg) (cons 'A A))) (A . 12)
(Prg (println (cons 'Prg Prg) (cons 'A A))) (A . 12)
-> (A . 12)
:

Reply via email to