Evaluation of variables in 50g
|
05-20-2014, 05:38 PM
Post: #1
|
|||
|
|||
Evaluation of variables in 50g
While developing newRPL I stumbled upon this "feature" on the 50g:
According to the AUR: Quote:Evaluating Local Names So, with global variables, for example I write: Code:
Then doing: Code:
Should EVAL B, but per the AUR, the contents of B will be evaluated, which evals to 'X' which will in turn be evaluated and give 4 as a final result. This works as expected. Now doing: Code:
Should EVAL B, which gives 'A' and its contents evaluated 'X+1' = 5. But the symbolic is NOT evaluated, resulting in 'X+1' on the stack. Pressing EVAL does indeed return the expected 5. Why is the EVAL not executed automatically? Are there some objects for which auto EVAL is disabled? Is this documented anywhere? Thanks for the help. Claudio |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)