newRPL - build 1255 released! [updated to 1299]
|
06-11-2019, 10:59 PM
Post: #500
|
|||
|
|||
RE: newRPL - build 1255 released! [official and unofficial]
(06-11-2019 06:51 PM)Gilles Wrote:(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. A program (secondary) during runtime is just an address pushed to the return stack. A loop is... also just an address pushed to the return stack. In my example I used all secondaries but it's all the same. If I wanted to distinguish them I'd have to do something special to "mark" which positions in the return stack are secondaries. I'll have to think if that is possible and how to implement it. EXIT simply pops that return address from the return stack and cleans up local vars as needed, but doesn't really know what exactly it is exiting. RETURN would have to basically EXIT multiple times until it (somehow) knows the next return address is outside the secondary. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)