[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] Re: [bugs #11577] gnu.mapping.InheritingEnvironment not seein
From: |
Per Bothner |
Subject: |
[Bug-kawa] Re: [bugs #11577] gnu.mapping.InheritingEnvironment not seeing symbols in parent environment |
Date: |
Tue, 15 Feb 2005 11:22:39 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 |
thomas kirk wrote:
Good suggestion, thanks. It had occurred to me to modify my current implementation
using java.lang.ThreadLocal, but I wasn't aware of your gnu.mapping.Threadlocal.
Actually, ThreadLocation, which is very new - less than a week in cvs.
Note your followup is is a little unclear because you seem to use
"symbol" when you mean "binding". Symbols are global and have no
mutable state - though Symbols can live in different namespaces
(packages). Dynamic bindings are implemented using Location
objects, and they are mutable. They don't necessarily have a
name. An Environment maps a (Symbol, property)-pair to a Location.
The inheritance and other magic is all done at the level of
Environments and Locations; not Symbols. (This is a change in
the last few months.)
--
--Per Bothner
address@hidden http://per.bothner.com/