--- In [EMAIL PROTECTED], "swzoh" <[EMAIL PROTECTED]> wrote:
> 
> --- "entropyreduction" <[EMAIL PROTECTED]> wrote:
> > 
> > Hi,
> > 
> > With this script:
> > 
> >   @varTypesRunner
> > 
> >   global sTest
> >   sTest = "in global"
> >   [EMAIL PROTECTED] 
> >   win.debug("in global context: " ++ sTest2)
> >   quit
> > 
> >   @varTypes
> > 
> >   static sTest
> >   sTest = "setting inside function"
> >   win.debug("in local context: " ++ sTest)
> > 
> >   Quit
> > 
> > output is
> > 
> >   in global context: setting inside function
> >   in local context: setting inside function
> > 
> > i.e. it appears when both a static and global of same name
> > exist, the global is set
> 
> I think just the last set one will be used, i.e.,
> no precedence among global and static/local.

Oops, I think I made a mistake here, i.e., it seems that
static/local precedes global.

global test1="global1"
local test1="local1"
local test2="local2"
global test2="global2"

win.debug(test1,test2) from other script may show the point.

Sean





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to