Post Reply 
newRPL: Making RPL more readable
12-02-2016, 02:25 PM
Post: #5
RE: newRPL: Making RPL more readable
(12-02-2016 02:34 AM)compsystems Wrote:  Is very important in some way, control of the scope of the variables

newRPL already has scoped locals, you can define a scope any time using :: ; (in addition of the classic syntax: -> var1 ... varn << ... >> )

Code:

<<
1 'a' LSTO
@ FROM NOW ON 'a' EXISTS IN THIS << >> BLOCK
::
@ 'a' STILL EXISTS IN HERE
1 'b' LSTO
@ 'b' EXISTS FROM HERE ON, BUT ONLY WITHIN THE :: ; DELIMITERS
;
@ 'b' NO LONGER EXISTS HERE, BUT 'a' STILL DOES
>>
@ 'a' NO LONGER EXISTS HERE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL: Making RPL more readable - Claudio L. - 12-02-2016 02:25 PM
RE: newRPL: Making RPL more readable - Han - 12-02-2016, 12:39 PM
RE: newRPL: Making RPL more readable - Han - 12-07-2016, 07:37 AM
RE: newRPL: Making RPL more readable - Han - 12-07-2016, 10:12 PM
RE: newRPL: Making RPL more readable - Han - 12-05-2016, 07:43 PM



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