Post Reply 
newRPL: Alpha demo 0.9 released [UPDATED 2017-10-25]
08-10-2017, 12:45 AM
Post: #5
RE: newRPL: Alpha demo 0.9 released
(08-09-2017 08:35 PM)Claudio L. Wrote:  They are stack snapshot management commands (not on menus yet)

LOL!! I assumed the 'S' was for String, as in SREPL. So I put a string on the stack and tried SPUSH. Nothing happens. SPOP. Nothing happens. SDROP. Nothing happens.

Ironically, by the time I did the third command, nothing really had happened!

I assume that you can only have 8 levels of SPUSH'd stacks? That it in fact uses the same storage as the UNDO feature? Are those stacks stored anywhere the user can get at (other than using SPUSH and SPOP, I mean!)

I can see lots of uses for these already!

Quote:I added them in preparation for higher level commands to be written in RPL. But I want them to leave the stack untouched on error, so I will need this.

What commands do you have in mind?

Quote:If this is not what you want, then use the new commands:

Now because MYROUTINE can't see any locals created by any caller programs, it will create the global X variable with a 5, and the main program will result in a 4, since the last X refers to the local one, despite now having a global X=5.

I see. For some reason I assumed they took arguments, like HIDEVARS and UNHIDEVARS. This makes more sense.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: newRPL: Alpha demo 0.9 released - The Shadow - 08-10-2017 12:45 AM

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