Re: static and declare before use

Adam Megacz <[email protected]>
Newsgroups gmane.comp.java.xwt.core
Organization XWT
Message-ID <[email protected]>
Yeah, this is really good.  I'm going to implement it tonight.

  - a

Brian Alliet <[email protected]> writes:
> 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
>
>
> _______________________________________________
> core mailing list
> [email protected]
> http://lists.xwt.org/listinfo/core
>

-- 
"It's lucky," he added, after a pause, "that there are such a lot of
islands in the world.  I almost envy you, Mr. Watson."

                                                   -- Mustapha Mond
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.