defining and using globals in an application

Mark Stuart mfstuart at cox.net
Thu Jul 7 00:45:00 EDT 2011


Hi Slava,
You wrote:
>>
You said "the value of that global not be available anywhere else," but the
value IS available everywhere else. You just have to declare that this is a
global variable before using it, so LC knows where to fetch that value.
<<

Again, my point exactly.
You HAVE to declare the global again, and again where needed.

I'd rather it once declared and a value put into it, the value be available
elsewhere WITHOUT having to declare it again.
It just sets up the developer for an easy "falldown". The time it takes,
especially for a different developer in the same application or coming back
some time later, to find the declared global name.

Which brings up a whole new issue of intelli-sense or type-ahead
variable-name-while-typing-a-script convention.
But I won't go there at this time.

Regards,
Mark Stuart





More information about the use-livecode mailing list