newRPL - build 1255 released! [updated to 1299]
|
06-09-2019, 12:10 PM
(This post was last modified: 06-09-2019 12:36 PM by Gilles.)
Post: #495
|
|||
|
|||
RE: newRPL - build 1255 released! [official and unofficial]
Claudio, did you think that a 'RETURN' command could be introduce in the future?
'return' exists in most langage and in PPL. The idea is to be able to exit a command/fonction at any time with the stack as it is, even in the middle of nested loops and IF/CASE.... I imagine this is not obvious because the program have to exit all and to deal with internal stuff in a proper way. In fact, it could be seen as a kind of EXIT (wich is a advantage of newRPL vs RPL) but not only for a loop but for a full command/function. (or like a local KILL) Usage case is : Code: a b START Without RETURN and with EXIT you have to use a flag or a local variable and awfull things like : Code: 1 CF |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)