Re: static and declare before use

Brian Alliet <[email protected]>
Newsgroups gmane.comp.java.xwt.core
Message-ID <[email protected]>
On Mar 2, 2004, at 5:41 AM, Charles Goodwin wrote:

> How would the syntax then be?
>
> "static.varname" to declare a variable?

Yup. "static" would just be a normal JS object. It wouldn't be anything 
special. static.foo = "bar" to assign to bar, ibex.log.info(static.foo) 
to get it.

> This would imply that you would be allowed to create static variables
> from within <ui:box/>?   But is this right?

You're right. I don't really see anything wrong with it. If you can't 
trust the code 5 lines down from you who can you trust? :) However, we 
could make the static object read-only after the static script has 
executed if necessary.

-Brian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.