[self-interest] Is there something in SELF like "become" in smalltalk?

David Ungar 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
> smalltalk.
> 
> 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
> parameter?
> 
> 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,
> Michael
> 
> --
> 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...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20140108/9e3afb01/attachment.html>


More information about the Self-interest mailing list