Overloading a global variable? What's that mean?
Overloading a global variable? What's that mean?
- Subject: Overloading a global variable? What's that mean?
- From: Charles Arthur <email@hidden>
- Date: Wed, 19 Sep 2001 11:08:19 +0100
Hi ...
I have a big script (42K once saved as an app) which involves variables
that are quite big lists of strings.
While using Smile's "post-compilation" function - which looks to see
whether you're doing bad things like setting a variable and then not using
it, or using a variable which you haven't declared, it came up with:
Warning: overloading global variable.
This was about a property (aka global variable, of course) which in the
course of the app gets set to one of those large (40-item) lists of
strings. (The app had run fine anyway, even with this overloading; I was
just updating it for some changes.)
I didn't know you could overload a global variable. What defines when it's
just nicely loaded, and when overloaded?
Charles
----------------------------
http://www.ukclimbing.com : 1000+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. Plus Britain's busiest climbing discussion boards. And there's
even a cool shop attached.