We hadn’t put in limits since we were considering making both
Integer 64-bit rather than 32-bit (which they are currently).
It is a good idea to have a proper mechanism for these values rather than using magic numbers though.
We’ll add the following constructors for
So you would get the
Real max value by using
You can add these by hand for now and we’ll add them in a future update.
We’ll probably add some other handy values too such as pi. If there are any specific
Real constants that you think would be useful, please let us know.
Note: These are created as constructors
Real!max rather than class data members
Real.@@max since the result values of a constructor cannot be changed whereas class data members could accidentally be changed. SkookumScript doesn’t have a way to tag data members as being constant. (Though we might add that capability in the future.)