"Delete all" on Variables panel also deletes names of built-in constants and units

Issue #669 closed
Former user created an issue

Using SpeedCrunch 0.12 portable on Windows 7.

Steps to reproduce: 1. Open a clean instance of SpeedCrunch. 2. Type a name for a constant or unit, such as "pi" or "e", for example. It is even autocompleted. Its value is shown. 3. Type a=2. A new variable called "a" is created. 4. If Variables panel is not visible, go to View, Variables, or press Ctrl+4. The variable "a" is there. 5. Right-click on Variables panel and select "Delete all". Then SpeedCrunch no longer recognizes any built-in constant name or unit, except of "ans". It shows "unknown function or variable" when you type it. You also cannot enter complex numbers anymore, and user functions which depend on "j" don't work ("j" is unknown). But you can get values of constants (not names) through the Constants panel and Ctrl+Space. This issue does not occur with "Delete all" on user functions.

Comments (6)

  1. Pol Welter

    Thanks a lot for reporting!

    A perfect description of how to reproduce the issue. I knew what had to be wrong even before I looked at the code.

  2. Log in to comment