Post Reply 
Large 50g program example
06-23-2015, 03:49 PM
Post: #13
RE: Large 50g program example
(06-20-2015 04:51 AM)Thomas Klemm Wrote:  
Quote:Local names are evaluated differently from global names. When a global name is evaluated, the object stored in the corresponding variable is itself evaluated.
(…)
When a local name is evaluated, the object stored in the corresponding variable is returned to the stack but is not evaluated.
- HP 48G Series User's Guide p. 29-17

Thus EVAL is sprinkled all over the program.

Ahhh, I had forgotten about the need to EVAL. Another reason not to do it this way. Last time I did it was on SysRPL, I don't think I ever used local functions in userRPL.

For whoever might be interested, this is one behavior I changed in newRPL, local variables are evaluated just the same as globals, except they are compiled into GETLAM's (actually more like a GETLAMEVAL of some sort), so this technique could actually make more sense as it would be much faster to execute, since the subroutine is not searched by name through a directory.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Large 50g program example - Tugdual - 06-19-2015, 05:41 AM
RE: Large 50g program example - Paul Dale - 06-19-2015, 06:25 AM
RE: Large 50g program example - Tugdual - 06-19-2015, 09:50 AM
RE: Large 50g program example - Bruno - 06-19-2015, 09:59 AM
RE: Large 50g program example - BruceH - 06-24-2015, 08:15 PM
RE: Large 50g program example - Claudio L. - 06-19-2015, 01:02 PM
RE: Large 50g program example - ttw - 06-19-2015, 06:55 AM
RE: Large 50g program example - Claudio L. - 06-19-2015, 01:09 PM
RE: Large 50g program example - Tugdual - 06-19-2015, 01:36 PM
RE: Large 50g program example - Joe Horn - 06-20-2015, 02:58 AM
RE: Large 50g program example - Claudio L. - 06-23-2015 03:49 PM
RE: Large 50g program example - fyescas777 - 07-06-2015, 02:24 AM
RE: Large 50g program example - Tugdual - 07-06-2015, 10:29 AM
RE: Large 50g program example - Hlib - 08-27-2016, 08:29 AM



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