[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: |
Fri, 22 Jun 2001 15:34:11 +0200 |
User-agent: |
Mutt/1.2.5i |
On Fri, Jun 22, 2001 at 02:23:47PM +0100, Neil Jerram wrote:
: >>>>> "Lars" == Lars J Aas <address@hidden> writes:
:
: Lars> Forget about it - I was looking at some old docs (have to
: Lars> fix the info search path soon), combined with not realizing
: Lars> that the C functions and scheme hooks essentially are the
: Lars> same...
:
: Also, environments.[ch], while part of libguile, is not actually used
: yet for what the module system and evaluator think of as environments.
Hmm, then I'll have to ask...
A C++ class contains a script string, and when it is going to be run I
want to create an environment where "this" is a smob for the current
class, and then evaluate the script in that environment.
I figured I would define "this" to the smob in a leaf environment, and
use that as the local part when creating an eval environment (haven't
figured out what to use as the import env yet - maybe the one returned
by scm_interaction_environment()?), and feed that env to the eval function.
If this doesn't work, what is the recommended method for doing what I'm
trying to do? A static/global this-binding isn't an option - it must be
local to the evaluation.
Lars J
--
"Imagine, the task force guy says, telling a passenger on arrival that a dildo
kept her baggage on the East Coast. Sometimes, it's even a man. It's airline
policy not to imply ownership in the event of a dildo. Use the indefinite
article. A dildo. Never your dildo. Never, ever say the dildo accidentally
turned itself on. A dildo activated itself and created an emergency situation
that required evacuating your baggage."
- leaf environments vs eval environments?, Lars J. Aas, 2001/06/22
- Re: leaf environments vs eval environments?, Lars J. Aas, 2001/06/22
- Re: leaf environments vs eval environments?, Neil Jerram, 2001/06/22
- Re: leaf environments vs eval environments?,
Lars J. Aas <=
- Re: leaf environments vs eval environments?, Lars J. Aas, 2001/06/22
- Re: leaf environments vs eval environments?, Neil Jerram, 2001/06/22
- Re: leaf environments vs eval environments?, Michael Livshin, 2001/06/22
- Re: leaf environments vs eval environments?, Lars J. Aas, 2001/06/22
- Re: leaf environments vs eval environments?, Michael Livshin, 2001/06/22
- Re: leaf environments vs eval environments?, Marius Vollmer, 2001/06/22
- Re: leaf environments vs eval environments?, Lars J. Aas, 2001/06/25