variables, arrays, or custom properties

erik hansen erikhans08 at yahoo.com
Thu Jul 17 19:47:00 EDT 2003


--- "J. Landman Gay" <jacque at hyperactivesw.com>
wrote:
> On 7/16/03 4:32 PM, erik hansen wrote:
> 
> > they used to say that globals were
> > too volatile to rely on very long, so i have
> > been saving to disk after each change.
> 
> I don't know if I'd call them volatile,
> particularly. The only danger is 
> if another stack uses the same variable name,
> which would allow it to 
> change the value when you might not expect it.
> If you give your globals 
> distinctive names and don't reuse those names
> in other stacks, there 
> isn't any danger. Richard's stack-naming
> example works well with globals 
> too; if your stack's name is "MyStack," then
> prefix all its globals with 
> "gMS" or some other identifier, which reduces
> the chance that some other 
> stack will reuse it.

sounds like a good system.
i still worry about crashes.

=====
erik at erikhansen.org    http://www.erikhansen.org

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



More information about the use-livecode mailing list