isInfinite

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

isInfinite

otto
Hi,

GRNumberPrinter | print:on: sends isInfinite to a SmallInteger, which
is called in a post load action. This breaks in GemStone because there
is no implementor of isInfinite. I tried to look for a way to
implement this on Float (where it could answer true in Pharo), but the
only concept that seem to make sense in GemStone is isNaN. Should I
just implement it with "^ false" on Number, or is there an equivalent
concept of an inifinite Float in GemStone?

Thanks
Otto
Reply | Threaded
Open this post in threaded view
|

Re: isInfinite

Dale Henrichs
Otto,

#isInfinite got added to the Squeak package last August
(Squeak-DaleHenrichs.238)...

Looking at the load directive (I'm glad you sent one earlier:),
Squeak-DaleHenrichs.252 (which includes the #isInfinite method) is
scheduled to be loaded after Grease-Core-DaleHenrichs.53 so that's
probably the issue.

I need to fix the dependencies in the Grease configuration.

As a workaround, you could load GLASS 1.0-beta.8.5 before loading
WonkaRuntime...

Dale

On 02/01/2011 05:17 AM, Otto Behrens wrote:

> Hi,
>
> GRNumberPrinter | print:on: sends isInfinite to a SmallInteger, which
> is called in a post load action. This breaks in GemStone because there
> is no implementor of isInfinite. I tried to look for a way to
> implement this on Float (where it could answer true in Pharo), but the
> only concept that seem to make sense in GemStone is isNaN. Should I
> just implement it with "^ false" on Number, or is there an equivalent
> concept of an inifinite Float in GemStone?
>
> Thanks
> Otto