Code Comments
Programming Forum and web based access to our favorite programming groups.ChanHong Kim wrote: > > I'm writing the Dolphin Smalltalk tutorial in Korean.So I'll explain > [variables] in philosopical method. > > In Smalltalk, "Everything is Object", however, variable is not. > I can't send any message variable itself. The message sent to the > object which is bind that variable. > > How can I explain such situation? Please tell me good idea about > explain the concept of Smalltalk's variables. > Perhaps describe variables as collections of slots? Instance vars are slots in an object, Global vars are slots in a dictionary object, temp vars are ad-hoc slots you can request by writing their names between two vertical bars. Since slots are part of an object they are not objects. R -
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.