What to do with stack overflow OBJ->/LIST->?
|
06-21-2016, 01:57 AM
Post: #2
|
|||
|
|||
RE: What to do with stack overflow OBJ->/LIST->?
(06-20-2016 09:30 PM)Tim Wessman Wrote: In RPN mode on Prime, you have a ->LIST command in the menu stack menu to build a list. (Type 1 2 3 4 5 ENTER, then press UP and click the "Stack" menu screen button). You can move up and build a list. All commands should probably throw a "Stack Overflow" error, which the user can catch with an IFERR statement, and which could be disabled via a flag. It should be handled the exact same way you are handling ALL commands when the stack overflows. If you have 128 items (full stack) and you do a DUP, what happens on current firmware? Even on the "infinite" stack of the 50g, if you run out of memory you get an out of memory error thrown, same thing would be expected on the Prime. As long as it's consistent and documented, people will work around the stack limitation. If you have 10 items on the stack, then you expand the first 118 elements of the list, and when trying to push the 119, it would blow with the "stack overflow" error (or if the flag disables it, just overflow and lose the bottom item). Since the user chooses the flag setting, the user will be fully aware of what happens and the implications of the overflow. I don't think you have this option in the poll, I bet most people would agree this is the best way to handle it. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
What to do with stack overflow OBJ->/LIST->? - Tim Wessman - 06-20-2016, 09:30 PM
RE: What to do with stack overflow OBJ->/LIST->? - Claudio L. - 06-21-2016 01:57 AM
RE: What to do with stack overflow OBJ->/LIST->? - Wes Loewer - 06-21-2016, 08:43 AM
RE: What to do with stack overflow OBJ->/LIST->? - Tim Wessman - 06-21-2016, 02:16 PM
RE: What to do with stack overflow OBJ->/LIST->? - Claudio L. - 06-21-2016, 05:14 PM
RE: What to do with stack overflow OBJ->/LIST->? - Stevetuc - 06-21-2016, 06:52 AM
RE: What to do with stack overflow OBJ->/LIST->? - toml_12953 - 06-21-2016, 12:20 PM
RE: What to do with stack overflow OBJ->/LIST->? - cyrille de brébisson - 06-22-2016, 05:02 AM
RE: What to do with stack overflow OBJ->/LIST->? - Wes Loewer - 06-22-2016, 07:30 AM
RE: What to do with stack overflow OBJ->/LIST->? - toml_12953 - 06-22-2016, 07:44 PM
|
User(s) browsing this thread: 1 Guest(s)