Cédrick, Marcus, Thank you so much for clarifying this for me. I downloaded the lectures and they look great. I am sure I'll learn a lot from them. If it is not asking for too much it would be aweswome if there were mp3 audio files of the lectures to go with the slides. I downloaded the Abelson Sussman lectures... http://www.swiss.ai.mit.edu/classes/6.001/abelson-sussman-lectures/ which are fantastic as well...but for Scheme mostly.
Thanks again, bakki On 8/31/06, Marcus Denker <[EMAIL PROTECTED]> wrote:
On 31.08.2006, at 17:35, Bakki Kudva wrote: > Hi, > > I'm a bit confused about y ourself. I understand that the definition > of yourself is ^self > But when I browse Object and look at yourself: all I find is the > description string.. > "Answer self." > 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 _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners