Poll: What should happen with LIST-> when an overflow happens?
It should not give the LIST-> if an overflow will happen
It should warn the user, then do it
It should just overflow off the top
Something else
[Show Results]
Note: This is a public poll, other users will be able to see what you voted for.
Post Reply 
What to do with stack overflow OBJ->/LIST->?
06-21-2016, 12:20 PM
Post: #5
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.

There is no direct way to get content out of that list with OBJ-> or LIST-> or similar. Please see http://www.hpmuseum.org/forum/thread-6415.html for the most recent discussion.

I'd like to correct this, but would like some feedback. Currently, there is a limit of 128 items in the stack. What should happen if you have too many items in your list that it will overflow the stack and lose items at the top?

Example: You have a list of { 1,2,...999}
Example: You have a list of { 1,2,...126} and already have 10 items in the stack.

I'd like the Prime to use all available memory for the stack but in the absence of that capability, an Out of Memory or Stack Overflow error would be appropriate.

Tom L

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: What to do with stack overflow OBJ->/LIST->? - toml_12953 - 06-21-2016 12:20 PM

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