help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-Smalltalk] Metaclass Class model of Smalltalk


From: Gwenaël Casaccio
Subject: [Help-Smalltalk] Metaclass Class model of Smalltalk
Date: Thu, 21 Oct 2010 14:07:51 +0200

Hi,

I want to share an idea about a new model of Metaclass and classes,
I don't want to refactor gst, but just want to know if it seems good!
If we look at the class and metaclass model there this infinite loop
between Metaclass, metaclass of Metaclass, ...
In fact if we try to build the metamodel this is logic:

metaclass of Metaclass -> Metaclass -> ... metaclass of Metaclass ->
Metaclass -> Metaclass of ClassOfThatObject -> ClassOfThatObject ->
anObject

The problem comes from Metaclass need a class, the class also need a
class , ... I think you get it and
this is normal any object in smalltalk has a class.

But what happens if the class of the object  is the object, we get a
prototype (not new) but this
is interesting for building a metaclass/class model:

aPrototype -> Metaclass of ClassOfThatObject -> ClassOfThatObject -> anObject

We could also change the superclass and having two ProtoObject (not
like Pharo/Squeak) but real prototype
which I think should be different for the superclass of
ClassOfThatObject and the metaclass.

This is just an outline of an idea :D

Cheers,
Gwen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]