Single-Scope Interpreters"

From Documentation
m (Created page with '{{ZKDevelopersGuidePageHeader}} Ruby, Groovy and JavaScript interpreters don't support multi-scope yet<ref>We may support it in the near future.</ref>. It means all variables de…')
 
m
 
Line 4: Line 4:
  
 
'''Tip''': Each page has its own interpreter to evaluate zscript codes. If a desktop has multiple pages, then it might have multiple instances of the interpreters (per scripting language).  
 
'''Tip''': Each page has its own interpreter to evaluate zscript codes. If a desktop has multiple pages, then it might have multiple instances of the interpreters (per scripting language).  
 +
 +
=== Notes ===
 +
 +
<references />
  
 
{{ ZKDevelopersGuidePageFooter}}
 
{{ ZKDevelopersGuidePageFooter}}

Latest revision as of 07:37, 16 July 2010

Single-Scope Interpreters


Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


Ruby, Groovy and JavaScript interpreters don't support multi-scope yet[1]. It means all variables defined in, say, Ruby are stored in one logical scope (per interpreter). Thus, the interpreter variables defined in one window override those defined in another window if they are in the same page. To avoid confusion, you could prefix the variable names with special prefix denoting the window.

Tip: Each page has its own interpreter to evaluate zscript codes. If a desktop has multiple pages, then it might have multiple instances of the interpreters (per scripting language).

Notes

  1. We may support it in the near future.



Last Update : 2010/07/16

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.