[squeak-dev] SmallInteger someInstance == nil :(
Fabio Niephaus
lists at fniephaus.com
Tue Jul 21 12:53:04 UTC 2020
On Tue, Jul 21, 2020 at 2:24 PM Marcel Taeumel <marcel.taeumel at hpi.de>
wrote:
> Hi all!
>
> Why is "SmallInteger someInstance == nil"?
>
Because SmallIntegers are immediate and cannot be instantiated
(`SmallInteger new` fails). This implies:
"SmallFloat64 someInstance == nil"
"Character someInstance == nil"
Why would you want someInstance of SmallInteger anyway?
Fabio
>
> Best,
> Marcel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200721/1c8b7a10/attachment.html>
More information about the Squeak-dev
mailing list
|