[Modules] Name space semantics was: Re: Some of my thoughts
Tim Rowledge
tim at sumeru.stanford.edu
Fri Aug 17 04:34:39 UTC 2001
Andreas Raab wrote:
> No. Unfortunately not. What you see in the above (pushLit: Foo) pushes the
> value (e.g., second field) of an object in the CMs literal frame. If you
> look at the literals of the above method then you'll see that one of those
> literals is the Association #Foo -> Foo and pushLit: goes right into the
> value field (e.g., doesn't even bother to send #value to this association).
> So there's no message send involved at execution time.
I'm pretty sure we changed that in VisualWorks (probably for 2.0 IIRC)
ages ago; maybe Squeak should follow. It would allow a tad more
flexibility, since other types of literal that respond to #value could
be used; perhaps this would even help woth environments.
tim
More information about the Squeak-dev
mailing list
|