[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: |
Shawn Rutledge |
Subject: |
Re: [Chicken-users] handle "unbound variable" exception for undefined procedures? |
Date: |
Mon, 5 Jan 2009 21:57:31 -0700 |
On 12/24/08, Peter Bex <address@hidden> wrote:
> 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.
Thanks for the suggestion, but I'm not feeling too keen on switching
object systems just for this. I think I like the generic function
concept (put the verb first, just as you always do in an expression to
be evaluated).
- Re: [Chicken-users] handle "unbound variable" exception for undefined procedures?,
Shawn Rutledge <=