Re: WARNING messages in MetaCard 1.4 and global variables
Boyd Sweeney (starnet!apple!puzzler.nichols.com!sweeneyb)
Mon, 21 Nov 1994 12:14:34 -0500
>This mailing list is rather quiet, but we have 10 licences and are
>quite active in using mc to develope GUI's for applications.
>
>With version 1.4 we get lots of unwelcome WARNING messages
>in the console window. Can we switch them off ?
>
>The warnings are due to global variables not being explicitly
>declared global in each script that uses them. Why isn't it
>enough to declare them global once and for all, say in the script
>of the parent stack ?
>
>We never had these warnings in 1.3, and the applications worked OK.
>
>And it is practically impossible to find the reason for some of the
>warnings eg if mc complains about a "literal shadowing a global in
>handler mouseUp. WHICH handler mouseUp - there are dozens.
>
>
>Alan Hewat, ILL Grenoble, FRANCE (hewat@ill.fr) Fax (France=33).76.48.39.06
This one was a bit annoying, and I had quite a time tracking down all of my
"shadowed variables". You might want to pick up a copy of my
mcScriptSearch stack to help track these down. It allows you to do keyword
searches of selected object scripts in a stack of your choice. It can be
found in the contrib directory at the MetaCard distribution sites.
Good Hunting!
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Boyd Sweeney Scientist, Nichols Research Corporation _/
_/ sweeneyb@puzzler.nichols.com (205) 883-1170x1775 _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/