[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #22451] Access to variables in environment from compiled
From: |
anonymous |
Subject: |
[Bug-kawa] [bug #22451] Access to variables in environment from compiled code |
Date: |
Sat, 01 Mar 2008 17:41:00 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; fr; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 |
URL:
<http://savannah.gnu.org/bugs/?22451>
Summary: Access to variables in environment from compiled
code
Project: Kawa
Submitted by: None
Submitted on: samedi 01.03.2008 à 17:40 UTC
Category: Code generation
Severity: 3 - Normal
Item Group: Unexpected result
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
A location set in an environment from Java is not accessed from compiled code
or scripts (or not always!), only its first binding.
Example:
Environment env = new Scheme().getnewEnvironment();
env.put("self",b1);
Scheme.eval("(define (getInternalInfluence)
(invoke (as <mimosa.scheduler.DefaultState> self)
'getInternalInfluence))",env);
==> call of the function use b1 as the value of self, OK
env.put("self",b2);
==> call of the function STILL USE b1
I replaced self by (eval 'self (interaction-environment)) and it works (but
it is just a work-around!!)
Unfortunately, it is always like that!! When I use a script referencing a
location set differently in different environments, only the first binding is
used...very bad for what I have to do
HELP PLEASE
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?22451>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Bug-kawa] [bug #22451] Access to variables in environment from compiled code,
anonymous <=