[Newbies] Polymorphic or: with block argument

Sean P. DeNigris sean at clipperadams.com
Sun Sep 17 13:44:35 UTC 2017

Ralph Johnson wrote
> Yes, when the compiler sees   exp or: [ ... ] then it assumes that "exp"
> is
> a boolean-valued expression and generates code that fails if it isn't.

I remember the pain of tripping over these little "everything is a message
send to an object*" sins as a new Smalltalker. I wonder now, with the
incredible speed of Cog, Spur, Sista, etc., if these devil's bargains from
prior decades are still necessary. It would be psychologically satisfying
(and nice for newbies) to remove the asterisk from the principle above.

Sent from: http://forum.world.st/Squeak-Beginners-f107673.html

More information about the Beginners mailing list