On Wed, Dec 24, 2008 at 11:53:15AM +0100, Tobia Conforto wrote: > Mind you, this is the simplest implementation possible, without > inheritance, polymorphism or anything useful. But if you find (or > write) a full-fledged object system that works like this (probably > based on table lookup instead of static pattern matching) then you > will have no trouble adding a handler for unknown methods that fetches > the definitions on the fly.
One such object system is Prometheus, for which there's a Chicken egg. It has a message-not-understood message, which is sent to the object when the object nor any of its prototypes know of the message. Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth
pgpRofsQe6D85.pgp
Description: PGP signature
_______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
