[squeak-dev] Installing metacello within a 'Smalltalk run:[]' fails

Jakob Reschke forums.jakob at resfarm.de
Sat Jul 18 12:10:32 UTC 2020

Chris Muller <asqueaker at gmail.com> schrieb am Sa., 18. Juli 2020, 04:42:

> As long as Notification>>#defaultAction remains
>     ^nil
> instead of
>       self resume
> then Smalltalk>>#run: *must* handle Notification, otherwise, what Tim
> said would happen with headless apps, will happen.

resume must not be called from defaultAction according to the ANSI
standard. Squeak may differ, but having this in the class library would set
a bad example for applications that implement their own notifications.
Notifications resume by default anyway if not curtailed. The return value
of defaultAction will be the resume value. So maybe it should read ^ self
defaultResumeValue, or the latter selector should not exist in the library

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200718/2b61696d/attachment.html>

More information about the Squeak-dev mailing list