(Comp.sys.hp48) Item: 2628 by fatri@turing.u-strasbg.FR [Fatri Mohamed] Subj: Everlasting Lambda Variables Date: 11 Jan 1993 --> S/SX/G/GX While programming in sys-rpl I found something unusual. Usually when a program ends, all the lambda (aka local or temporary) variables are cleared: they no longer exist, even when the program doesn't do it explicitly (by the ABND command). Here is a little program that allows you to bind something to a lambda variable that still exists even after a KILL or a CONT. It takes two arguments: any object from level two and a global name from level 1. Execute it and then press ON when prompted to do so; the program will be aborted but a lambda variable that contains the object in level two, named the same as the global name you entered, will be created and will remain in existence until you execute an ABND command (or a warmstart). Unusual isn't it ? :: CK2NOLASTWD CK&DISPATCH1 #6 :: ID>LAM #1 DOBIND { { NULL$ :: $ "Press ON" NULL$ EvalNoCK: xINPUT ; } } InitMenu #1#1 Key>StdKeyOb EVAL ; ;