[self-interest] Re: Self Syntax Question

David Ungar David.Ungar at Eng.Sun.COM
Wed Oct 6 02:49:41 UTC 1999


Great question!
It should work, but I don't think it does in Self 4.0.

- Dave


At 10:18 PM +0200 10/5/99, Stefan Matthias Aust wrote:
>Hi!
>
>I wonder whether the following describes correct Self syntax or not.  I
>also wonder whether one would like to use it or not. First, some definitions:
>
>This shall be a method definition
>
>(|
>foo = (bar).
> |)
>
>This shall be a constant definition, where "bar" is evaluated in the
>context of the "lobby" object.
>
>(|
>foo = bar.
> |)
>
>Obviously, when looking at the message "foo", you cannot distinguish
>whether it's a method call or a constant slot access.
>
>My question is, does this work only for unary message selectors or also for
>binary and keyword selectors?  Or in other words, are these legal expressions?
>
>(|
>= whatever = false.
>ifTrue: aBlock = nil.
> |)
>
>My current SELF implementation requires a method object here, but
>especially for blocks etc., constant keyword slots would be handy, I think.
>
>
>bye
>--
>Stefan Matthias Aust  //  Bevor wir fallen, fallen wir lieber auf.
>
>------------------------------------------------------------------------
>
>eGroups.com home: http://www.egroups.com/group/self-interest
>http://www.egroups.com - Simplifying group communications

 

     David Ungar
     Sun Microsystems Laboratories
     (650) 336-2618



More information about the Self-interest mailing list