On May 9, 2:47 pm, Sion Arrowsmith <[EMAIL PROTECTED]>
wrote:
...
> How so? Python style gurus discourage use of global variables. So
> does all the C++ (and to a lesser extent C) advice I've ever
> encountered. And Java outright forbids the concept.

Class variables (public static), are the equivalent of global
variables in Java, and can be an equal pain. Singleton objects can
cause similar problems, since they are essentially global objects, and
changing the values of any of their members can cause wierd behaviour
in otherwise unrelated parts of the code. So Java isn't by any means
immune to the global variable problem, it just has different names for
them!


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to