Path: utzoo!attcan!uunet!mcvax!inria!litp!fdp From: fdp@litp.UUCP (Francois PACHET) Newsgroups: comp.lang.smalltalk Subject: creating metaclasses Message-ID: <725@litp.UUCP> Date: 19 Jan 89 15:50:08 GMT Reply-To: fdp@litp.UUCP (Francois PACHET) Organization: L.I.T.P, Universite P7, PARIS Lines: 20 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