Where would you put the return?

Andres Valloud sqrmax at comcast.net
Sat May 24 16:16:01 UTC 2003


Hi.

Anthony Hannan wrote:

> In Squid, selectors will be more than just symbols.  I'm considering
> adding an attribute to Selector to indicate whether it returns a
> value or not.  All subclass/polymorphic methods would have conform
> to this, and all senders would not be allowed to get the value of a
> "procedure-only" selector.  This will speed up returns a little
> since only "function" methods will have to return something.

I gotta say... why not put this effort into a JIT virtual machine that
will figure whether the answer is being used or not at runtime and
optimize appropriately?  It just gets stuff of the way of the developer.

Andres.



More information about the Squeak-dev mailing list