Logan Capaldo <logancapaldo / gmail.com> writes: >> Now try to port the Ruby object system to CL so it will have >> reasonable runtime performance. >> >> Good luck. >> > > I'm pretty sure CLOS is a super-set of the ruby object system. Only > thing I'm not sure of is Mixins and singleton methods, but I don't > imagine Mixins to be too hard to add if necessary. One could just > define a module, and then when one included it in a class just have a > macro go down the list of methods in the Module and define them for > the class (basically #append_features). Singleton methods are harder, > but one could probably do what is done in ruby, (construct a class on > the fly that inherits from an objects real class and change the > objects class to this new class.). We already get handling all the > inheritance stuff for free (and arrays and strings, numbers etc.). How do you handle method_missing? >>> Douglas -- Christian Neukirchen <chneukirchen / gmail.com> http://chneukirchen.org