Single-Scope Interpreters

From Documentation
Revision as of 07:37, 16 July 2010 by Maya001122 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.