Post Reply 
[HP48] Memory Management
10-24-2014, 04:00 PM
Post: #2
RE: [HP48] Memory Management
I don't think you can do this in userRPL. In systemRPL it may be possible to modify the data in place. However, if the size of the array changes, then it's definitely not possible.

RPL lets you have multiple pointers to objects, but then what happens if you change the object? You don't want to change the data that something else (like a stack level, or a local variable) is pointing to. RPL handles this in (at least) 3 ways: first, most operations create a new object, so objects are mostly "read only." Second, sometimes if will check to see if an object has multiple references to it and modify it in-place if not. Third, the words that do modify an object in-place usually start with "!" and are called "bang type" operators.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[HP48] Memory Management - Bruno - 10-24-2014, 12:34 PM
RE: [HP48] Memory Management - David Hayden - 10-24-2014 04:00 PM
RE: [HP48] Memory Management - Claudio L. - 10-24-2014, 04:48 PM
RE: [HP48] Memory Management - Bruno - 10-27-2014, 10:12 AM
RE: [HP48] Memory Management - Claudio L. - 10-27-2014, 12:04 PM
RE: [HP48] Memory Management - Paul Dale - 10-27-2014, 10:18 AM
RE: [HP48] Memory Management - Bruno - 10-27-2014, 01:15 PM
RE: [HP48] Memory Management - Han - 10-27-2014, 10:08 PM
RE: [HP48] Memory Management - Bruno - 10-29-2014, 10:15 PM



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