[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Max/min value of any number class (maxVal/minVal) i
From: |
Holger Freyther |
Subject: |
Re: [Help-smalltalk] Max/min value of any number class (maxVal/minVal) in gst? |
Date: |
Wed, 17 Oct 2018 08:37:40 +0100 |
> On 16. Oct 2018, at 15:30, Garreau, Alexandre <address@hidden> 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