the monopoly of classes

jan ziak ziakjan at host.sk
Thu May 22 23:14:15 UTC 2003


On Thu, 22 May 2003 14:29:13 -0700 (PDT), Brian T Rice wrote
> On Thu, 22 May 2003, jan ziak wrote:
> 
> > in smalltalk:
> > 1. object must be an instance of a class
> > 2. class is an object
> 
> Let me restate it:
> 
> 1. Every object must be an instance of a class. Classes describe 
> their instances.
> 2. Classes themselves are objects, therefore they also have their 
> own classes in Smalltalk.
> 

more precissely:
1. every object includes a field which contains a reference to its "class 
object"
2. object Class includes a reference to its "class object" also

my question is: do all objects really need to contain that field ?

> > i do not see any logic behind this. if you do then a would
> > like to know about it.
> 
> Read a Free Smalltalk Book and see:
> 
> http://www.iam.unibe.ch/~ducasse/WebPages/FreeBooks.html
> 
> -- 
> Brian T. Rice
> LOGOS Research and Development
> http://tunes.org/~water/






More information about the Squeak-dev mailing list