DB48X-on-DM42 icon indicating copy to clipboard operation
DB48X-on-DM42 copied to clipboard

Stack left dirty in case of error

Open camillew opened this issue 2 years ago • 1 comments
trafficstars

The stack is left with some intermediary data in case of error:

8 0 / -> 1 [and an error] 8 0 MOD -> +NaN [and an error]

It would be great to have a behavior similar to the RPL calculators where the arguments were restored in case of error.

camillew avatar Aug 02 '23 01:08 camillew

This behavior will "appear" when I get to implementing the undo stack and LastX.

Until then, you are correct that the state of the stack in case of error is not guaranteed.

c3d avatar Aug 03 '23 20:08 c3d