Programming Pad for RPL Programs
|
05-22-2014, 10:12 AM
Post: #24
|
|||
|
|||
RE: Programming Pad for RPL Programs
(05-22-2014 09:05 AM)Raymond Del Tondo Wrote:(05-22-2014 01:38 AM)Thomas Klemm Wrote: Though I can see your point it would be tedious to reverse the stack and have it right-aligned.The order of arguments and outputs in a stack diagram is a convention. All RPL related HP documents (manuals, external, internal) since the HP-28C use the right aligned order, and thus using this order simply avoids problems when reading stack diagrams from different sources. Now I'm confused. This code snippet is from the source you mentioned: Code: DUP ROT SWAP ( *A 2xDim B 2xDim* ) Do you agree that this stack diagram is left-aligned (linksbündig)? And this stack diagram bellow is reversed and right-aligned: Code: DUP ROT SWAP ( *2xDim B 2xDim A* ) This is the order that rprosperi prefers. Quote:(05-22-2014 01:38 AM)Thomas Klemm Wrote: I think it's helpful when elements of the stack that aren't affected by a command stay at the same position.But they don't stay at the same position. If a command takes four arguments and returns nothing, the elements above (or below) the 4 args are on top of the stack after the command. Code: ( a b c d e f ) Best regards Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 11 Guest(s)