Hi Lindsay, > 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).
Oops, sorry! The example in the reference for 'run' is wrong! It used to be correct for the pre-pil21 versions of PicoLisp, but with pil21 the semantics of 'run' has changed. The 'cnt' parameter does no longer refer to the full environment at that offset. Instead, the ref now says: If an offset cnt is given, the value of @ in the cnt'th call environment is used That means, only the value of '@' is involved. > Am I doing something incorrectly or is the behavior different > than as documented. You did it all correctly, but you indeed found an error (a remnant) in the reference. I will fix the example code. Thanks for finding this! ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe