[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] handle "unbound variable" exception for undefined pr
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] handle "unbound variable" exception for undefined procedures? |
Date: |
Wed, 24 Dec 2008 12:07:12 +0100 |
User-agent: |
Mutt/1.4.2.3i |
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
pgpFGvTpYIlWe.pgp
Description: PGP signature