[squeak-dev] The Trunk: System-eem.1359.mcz
David T. Lewis
lewis at mail.msen.com
Sat Jun 11 17:02:12 UTC 2022
On Sat, Jun 11, 2022 at 02:30:31PM +0000, Thiede, Christoph wrote:
> Hi Eliot,
>
>
> > + vmLimit := Smalltalk parameterAt: 67.
>
>
> This leads to an MNU in my image. Did you mean: Smalltalk vmParameterAt: 67? :-)
>
> Best,
> Christoph
>
Also, vmLimit isZero will fail when vmLimit is nil, as is the case for other VMs.
So it might better be:
| vmLimit |
vmLimit := Smalltalk vmParameterAt: 67.
^vmLimit ifNotNil: [vmLimit isZero ifFalse: [vmLimit]]
or this:
| vmLimit |
vmLimit := Smalltalk vmParameterAt: 67.
^(vmLimit isNil or: [vmLimit isZero]) ifFalse: [vmLimit].
Dave
More information about the Squeak-dev
mailing list
|