[self-interest] Is there something in SELF like "become" in smalltalk?
ungar at me.com
Thu Jan 9 05:05:25 UTC 2014
1. Yes, Self has a one-way become: it redirects all references to one object to a clone of the other.
2. It's bad style because punning locals and slots in the receiver can easily mislead the reader.
On Jan 8, 2014, at 12:38 PM, mpaap <michael at mpaap.de> wrote:
> Hello SELF-group,
> I am writing a term paper about SELF and would like to ask some questions in
> the next days.
> I have got some years of experience in Java and some basic knowledge about
> Mir first questions:
> 1. Is there something like Smalltalk's "become:" in SELF? A message, which
> causes replacing all references to the receiver with references to the
> 2. In chapter 2.3.4 of the SELF handbook explicit messages to self are
> described as "bad style" because of the facht, that this would prevent
> searching in local slots (of the activation object) before searching in the
> receiver. Ok. But the only case I can see, where this would do any harm, is,
> if a parameter slot of the message has the same name as a slot of the
> receiver. Can you give me another example?
> Thanks in advance,
> View this message in context: http://forum.selflanguage.org/Is-there-something-in-SELF-like-become-in-smalltalk-tp7572538.html
> Sent from the Self mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Self-interest