cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Locking the JS global scope to avoid implicit declarations
Date Thu, 28 Oct 2004 13:26:33 GMT
Sylvain Wallez wrote:
> Carsten Ziegeler wrote:
> 
>> This might be a dump question, but I thought that global variables
>> are attached to the session of the current user. Is this wrong or
>> are there different kinds of global variables?
>>
> 
> Yes, the "global" scope in flowscript is attached to the session. That 
> means implicitely declared variables are shared by all continuations of 
> a given user instead of being local to a continuation. Things would be 
> even worse if the global scope was unique to the application!!

Speaking of which, should this be an option? If global scope is shared among 
users, it would allow writing stateful, multi-user applications. Opens 
interesting possibilities...

Vadim

Mime
View raw message