[comp.lang.smalltalk] creating metaclasses

fdp@litp.UUCP (Francois PACHET) (01/19/89)

I am a Phd student working on Knowledge representation. I currently
implement an Expert System Shell and I have some trouble with
metaclasses :
Is it possible to create classes whose metaclasses are
not instances of class Metaclass, but instances of some other
class (a subclass of Metaclass or of Behavior ...) without
redefining the whole instanciation mechanism.
If not, then what are the minimum classes and methods to modify ? 

For instance, I would like to have all the classes of a given
category Foo to heritate automatically from this method new :

new
  |it|
  it _ super new.
  (methodDict includes: #autoInit) ifTrue: [it autoInit].
  ^it