cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Unico Hommes <un...@hippo.nl>
Subject Re: Locking the JS global scope to avoid implicit declarations
Date Thu, 28 Oct 2004 13:24:05 GMT
Carsten Ziegeler wrote:

>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!!
>>
>>    
>>
>Definitly, I got this impression from your description and was
>*really* scared :)
>  
>

Me too. I got a *lot* of code to check.

>So: Let's lock it without making it configurable - I don't see
>any use case for it. If this would be a vote, I would say +1 ...... :)
>  
>

+1 for locking it.

--
Unico

Mime
View raw message