HP 50g - Storing local variables while branching???
|
03-05-2018, 10:43 PM
Post: #2
|
|||
|
|||
RE: HP 50g - Storing local variables while branching???
(03-05-2018 09:52 PM)Carsen Wrote: Hello all: When you allocate local variables, they are only accessible in the program object (i.e. stuff between << and >>) that immediately follows the variable declaration. In your example, there is no program object following their allocation. It looks like you are trying to return values on the stack to the mm1, dd1, etc. variables, but the "->" variables are only local (accessible in the next block, which in your exampled doesn't exist); you can't store into named object storage this way. RPL experts will hopefully explain this using more exact language, but that's the basic problem. Bottom line: local storage is temporary and you cannot allocate permanent storage this way. --Bob Prosperi |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HP 50g - Storing local variables while branching??? - Carsen - 03-05-2018, 09:52 PM
RE: HP 50g - Storing local variables while branching??? - rprosperi - 03-05-2018 10:43 PM
RE: HP 50g - Storing local variables while branching??? - Carsen - 03-05-2018, 11:27 PM
RE: HP 50g - Storing local variables while branching??? - pier4r - 03-06-2018, 07:01 AM
|
User(s) browsing this thread: 1 Guest(s)