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

Re: [sc-users] ProxySpace and currentEnvironment




agreed!

I'm changing this in these written words.

thor


On 25 Oct 2007, at 16:37, James Harkins wrote:

On 10/25/07, thor <th.list@xxxxxxxxx> wrote:
I need to store the environment values somewhere that if a _user_ of the
environment (the ixiQuarks) suddenly runs ProxySpace it doesn't erase
all the data from the currentEnvironment.

Because environment variables have a runtime instead of a lexical
scope, writing a class that depends on a certain environment being the
current environment strikes me as a design mistake.

You could require ixi data to go into the top environment at all
times. The top environment is always accessible using the aptly named
topEnvironment special variable :)

If users are not switching environments, they will always be using
topEnvironment anyway and it should be transparent to them.

Users of ProxySpace and other multi-environment structures (AdhocClass
in my lib) have a vested interest in understanding how environments
work and it's reasonable to expect them to manage this requirement for
ixi.

hjh



--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users