[Top][All Lists]

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

Re: leaf environments vs eval environments?

From: Lars J. Aas
Subject: Re: leaf environments vs eval environments?
Date: Mon, 25 Jun 2001 13:41:13 +0200
User-agent: Mutt/1.2.5i

On Sat, Jun 23, 2001 at 02:42:08AM +0200, Marius Vollmer wrote:
: you might take a slightly different approach and treat the script that
: is inside your object as a function that is applied now and then.
: Like, when the sciprt string is set in your object, create a closure
: from it, by tacking "(lambda (this) " on the front and ")" on the back
: and evaluate it in the interaction envitronment or whatever
: environment you deem to be the right one, saving the returned closure
: object.

We have a winner :)  Should have thought of this myself.  When you think
something is difficult, the simple solutions tend to evade you...


  Lars J
This is your life and it's ending one minute at a time.

reply via email to

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