Doubt about behavior of history stack when changing the base in programming mode
@ao2
Submitted by Antonio Ospite Link to original bug (#772777)
Description
Hi,
I use the Programming mode a lot, changing the base often in the same "session", and I feel that the history stack can be improved in how it deals with results in different bases.
Here are some steps to show an example of what I mean:
- Put gnome-calculator in Programming mode
- Select the Hexadecimal base
- Type "A" in the input area and press enter 4, Clean up the input area
- Select the Decimal base
- Click on the "A" in the history stack, either in the result area or in the equation area
Right now a verbatim "A" is put in the input area which has no meaning in Decimal base.
I wonder if the saved result should be converted to the active base before being entered in the input box from the history stack.
Another example:
- Put gnome-calculator in Programming mode
- Select the Binary base
- Type "10 + 10" in the input area and press enter
Now the history stack shows "10 + 10 = 100" without any indication of the base, which could suggest Decimal but that equation would be wrong in decimal.
Maybe the results in the history stack should remember and show the base when in programming mode? Or am I pushing the example too far to make my point? Tell me so if you think that's the case. :)
I will try to see how other editors supporting multiple bases behave in this scenarios, if you know any of such editors it would be appreciated.
Thanks, Antonio
Version: git master