newRPL - build 1255 released! [updated to 1299]
|
06-11-2019, 06:51 PM
(This post was last modified: 06-11-2019 07:02 PM by Gilles.)
Post: #499
|
|||
|
|||
RE: newRPL - build 1255 released! [official and unofficial]
(06-11-2019 12:42 PM)Claudio L. Wrote: EXIT will also return from the current program but it can only exit one program at a time. RPL has no function markers so there is no way to know how many secondaries RETURN is supposed to exit (…) Quote:EXIT will also return from the current program but it can only exit one program at a time. I'm not sure to understand your point. Perhaps I missed or misunderstand something. I thought that EXIT was something like BREAK in PPL, and my suggestion for RETURN was something like the RETURN in PPL. For me EXIT dont return from the current program but exit the current loop (Or perhaps behind the scene a loop is a program in newRPL ?). The idea of RETURN is different : stop the program (the subprogram) here and returns the stack "as it is" : Exemple Code: « -> 1 3 'a' loop is just executed once 'b' loop 3 times But with EXIT Code: « The inner loop stops each time the condtion is true The outer loop is executed 10 times |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)