The competition made me look again at my SCalculator and I found a very important capability missing - the capability to use brackets when you want to do a calculation with other order than the mathematical.
The addition of this capability was surprisingly simple -
I changed the three registers and the three operation level storage to arrays, and now they work in the same way but for various levels for each pair of brackets.
I added another function - the Factorial N!.
I shall apreciate comments and suggestions for improvements. For example :
almost all the subs start with a set of checks that if they fail the sub ends by "return".
If I take this returning part to another common sub, i cannot use "return" because it will return and perform the originating sub instead of getting out.
i am sure someone knows how to do it :sign0163:
The addition of this capability was surprisingly simple -
I changed the three registers and the three operation level storage to arrays, and now they work in the same way but for various levels for each pair of brackets.
I added another function - the Factorial N!.
I shall apreciate comments and suggestions for improvements. For example :
almost all the subs start with a set of checks that if they fail the sub ends by "return".
If I take this returning part to another common sub, i cannot use "return" because it will return and perform the originating sub instead of getting out.
i am sure someone knows how to do it :sign0163: