|
Re: yourself: msg#00264lang.smalltalk.squeak.beginners
On 31.08.2006, at 17:35, Bakki Kudva wrote: Hi, What happened to ^self? Where is the actual code implementing this? self is the default return value. So if you return nothing special, the compiler will add a ^self at the end. A good rule is to make the ^self explicit as soon as it is important, thus for our lecture (#yourself is covered in 04: http://www.iam.unibe.ch/~scg/Teaching/Smalltalk/Slides/04Idioms.pdf ) we changed the implementation of #yourself to be yourself "Answer self." ^self This is in 3.9 Marcus
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: yourself, cdrick |
|---|---|
| Next by Date: | Re: yourself, cdrick |
| Previous by Thread: | Re: yourself, cdrick |
| Next by Thread: | Re: yourself, Bakki Kudva |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |