Re: conflict between UNDO and LOCAL



Aids for creating "persistent local variables"
with pre-assigned explicit values (or all zero):

LOCLV stores supplied value(s) into local variable(s).

LOCLZ stores zero(s) into local variable(s).

CONT abandons the most recent set.

KILL abandons all.

NDUPN (and other HP49/50 series commands) for HP48 series:
http://groups.google.com/group/comp.sys.hp48/msg/7a9c3c756d12b5ef
http://groups.google.com/group/comp.sys.hp48/msg/b966a46c7ad0ad34


@ value 'name'
@ or
@ values { names }
\<< { } + \->STR 2 OVER SIZE 1 - SUB
"\->" SWAP + "\<<HALT" + STR\-> \>> 'LOCLV' STO

@ 'name' or { names }
\<< { } + 0. OVER SIZE NDUPN
1 + ROLL LOCLV \>> 'LOCLZ' STO

@ End
.