[Pharo-project] Compiler pedantic about ifNotNil: argument

Schwab,Wilhelm K bschwab at anest.ufl.edu
Sun Oct 10 11:00:18 EDT 2010


Nicolas,

Have you thought about using another message, something like #terminateIfRunning that you put in both Process and UndefinedObject?  Then you can just send it w/o the test and w/o a compiler change.

Bill




________________________________________
From: pharo-project-bounces at lists.gforge.inria.fr [pharo-project-bounces at lists.gforge.inria.fr] On Behalf Of Nicolas Cellier [nicolas.cellier.aka.nice at gmail.com]
Sent: Sunday, October 10, 2010 8:39 AM
To: The general-purpose Squeak developers list; Pharo Development
Subject: [Pharo-project] Compiler pedantic about ifNotNil: argument

The compiler uselessly insist on #ifNotNil: argument being a zero/one arg block.
Thus we cannot write this xtream sentence

    process ifNotNil: #terminate.

When the argument is not a block, Compiler should avoid inlining and
just send a normal message.

cheers

Nicolas

_______________________________________________
Pharo-project mailing list
Pharo-project at lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project




More information about the Pharo-dev mailing list