Single-Scope Interpreters

From Documentation
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).


  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.