Re: Max/min value of any number class (maxVal/minVal) in gst?

Holger Freyther <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.gnu.general
Message-ID <[email protected]>

> On 16. Oct 2018, at 15:30, Garreau, Alexandre <[email protected]> wrote:
> 
> Hi,

Hi!


> 
> It seems other platforms such as Squeak or Pharo have a message “maxVal”
> which gives the max value of a given class, such as “SmallInteger
> minVal” or “3 class minVal”, for instance.
> 
> Does GNU Smalltalk have anything, maybe incompatible, analog to this?  I
> guess this must not be that hard to get but I don’t know yet enough of
> SmallTalk (or even Smalltalk) so that to try to make that myself…

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?

holger
_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.