Stack Level Local/Globals
Eric Chatonet
eric.chatonet at sosmartsoftware.com
Mon Jul 4 15:07:28 EDT 2005
Hi Dennis,
I agree since I provide many tools for the community that are made to
run in the IDE.
So I never use globals but I prefer to refer to some custom
properties stored in specific custom property sets in my plugins or
in the revPreferences stack.
BTW, I found that referring to custom properties is as fast as using
global variables and they don't vanish when they are stored in
revPreferences.
That's great :-)
But...
The main aim with Rev is to build standalones where this problem does
not exist since all yours globals are of course stack global
variables ;-)
Le 4 juil. 05 à 19:55, Dennis Brown a écrit :
> I have searched all over BZ looking for an enhancement to the
> global or local declarations that provide the missing Stack level
> scope in Transcript because I wanted to add my votes to it, but I
> can't seem to find it. Could someone point me to it, otherwise I
> will enter it.
>
> Global variable = Scope across all stacks --these are a pain to use
> because the scope is too broad so they need special naming
> conventions.
> Stack global variable = Scope across sub-stacks --this is the
> missing scope that could replace globals in most situations.
> Script local variable = Scope across script --we have this
> Local variable = Scope inside handler --we have this
>
> The stack global/local variable (I am not sure what it should be
> called) just has the scope of a single main-stack and sub-stacks.
> This means that I could assign "global" names to a project without
> having to take into consideration global names that may have been
> used by someone else. This seems like the missing scope piece that
> would simply solve many problems. It was suggested to me privately
> in an email, so I assumed that it has had an enhancement request in
> BZ.
Best Regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
Free plugins and tutorials on my website
----------------------------------------------------------------
Web site http://www.sosmartsoftware.com/
Email eric.chatonet at sosmartsoftware.com/
Phone 33 (0)1 43 31 77 62
Mobile 33 (0)6 20 74 50 86
----------------------------------------------------------------
More information about the use-livecode
mailing list