On 2018-10-17 at 08:37, Holger Freyther wrote: > on a quick skim I have not noticed anything. In the C libgst there are > two macros that might be of help to add a primitive. MAX_ST_INT and > MIN_ST_INT. The values will be different on 32bit/64bit runtimes. > > But the question is how would you use it?
Yes, and how to make (if possible) equivalent messages minVal/maxVal that would return that min and max value, but not only for SmallInteger, as several other implementations seem to support it, and that should increase portability while not breaking compatibility. I guess for floats and bignums that would be ±inf (the other implementation I saw doesn’t implement ieee754 ±inf, nor, but this time I forgot to check, bignums). _______________________________________________ help-smalltalk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-smalltalk
