Re: 48G compiled local variable problem Message #2 Posted by Thomas Okken on 4 Sept 2006, 10:39 a.m., in response to message #1 by Hal
I'm surprised your program even executes -- according to the manual (page 29-16), there are only two allowed syntaxes for local variables:
<< -> name1 name2 ... namen 'algebraic' >>
and
<< -> name1 name2 ... namen << program >> >>
Apparently, if additional items exist after the algebraic or program, they are executed, but the local variables only apply to the first item that follows them.
To fix your program, simply wrap the
'M' ->NUM 'A1' ->NUM 'A2' ->NUM
bit inside << and >> delimiters and you should be OK.
Regarding your question about purging programmatically: nothing could be easier; for example
<< 'A' PURGE >>
will purge the global variable A.
HTH,
- Thomas
Edited: 4 Sept 2006, 10:48 a.m.
|