Post Reply 
Evaluation of variables in 50g
05-27-2014, 02:39 PM
Post: #14
RE: Evaluation of variables in 50g
(05-27-2014 02:23 PM)Didier Lachieze Wrote:  Well I’m not an expert in RPL, but today if I do:

Code:
'X^2' 'A' STO
'X+1' 'B' STO
2 'X' STO

Then executing << A B + >> returns 'X^2+(X+1)' not 7 as it would with your proposed change if I understand it correctly. This seems to be a quite significant change of the symbolic operations.
I will let RPL gurus (and I know there are a few on this forum) provide more inputs.

Didn't think about that one. You are right, if we EVAL everything you'd have to write:

Code:
 << 'A' RCL 'B' RCL + >>

Not the end of the world, but not very elegant either. Perhaps we could introduce a syntax for RCL and a syntax for EVAL of a name. For example, VAR@ could mean RCL, while VAR could be EVAL.
So your example would be:

Code:
<< A@ B@ + >>

Of course, doesn't have to be the @ symbol, can be something better.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Evaluation of variables in 50g - Claudio L. - 05-27-2014 02:39 PM



User(s) browsing this thread: 4 Guest(s)