chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] environments egg


From: Arto Bendiken
Subject: Re: [Chicken-users] environments egg
Date: Wed, 14 Feb 2007 01:28:38 +0100

On 2/9/07, Daishi Kato <address@hidden> wrote:
On 2/9/07, Arto Bendiken <address@hidden> wrote:
>
> I simply meant that you can use (define-record) to wrap your own
> structure around the environment structure, and include a parent
> pointer (and any other needed goodies) in that.

That doesn't sound so nice.
I don't want to care about the parent pointer when I call (eval foo env).
The layered lookup of bindings should be done internally.

Yes, but Chicken's eval won't do that for you (though you can
partially simulate it [1]) - thus, you need your own evaluator,
anyway. I intend to provide a basic one (derived from felix's sandbox
egg) in the contexts egg, eventually.

Maybe I could just wait for your egg, and discuss later.

I've just uploaded an initial version to the SVN repository (it's in
contexts/trunk/). I'll be adding unit tests and some documentation [2]
in the next few days - you may want to hold off till those are in
place (though the egg is not that difficult to understand from the
source, either, at a couple hundred LOC).

[1] http://chicken.wiki.br/Unit%20lolevel#set-invalid-procedure-call-handler!
[2] http://chicken.wiki.br/contexts

--
Arto Bendiken | address@hidden | http://bendiken.net/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]