Dennis Lee Bieber
2/23/2008 5:20:00 AM
On Fri, 22 Feb 2008 19:11:01 -0800 (PST), icarus <rsarpi@gmail.com>
declaimed the following in comp.lang.python:
>
> But how do I get around it? How do I update and access a variable
> anytime I want? Any easy-to-follow examples? Thanks in advance.
>
Well, if you want to follow the Java decrees, you create a class to
hold it, create an instance of the class (okay, it may be possible to
work without an instance -- other than knowing Java has an overgrown and
incomprehensible standard library, and all the flawed syntax of C and
Pascal, I avoid the language), and in that class you have defined
methods to get and set the value.
Oh... and you pass the instance, as a parameter, in/out of all other
invoked methods that might need it. Thereby there is never a global
reference to it.
--
Wulfraed Dennis Lee Bieber KD6MOG
wlfraed@ix.netcom.com wulfraed@bestiaria.com
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: web-asst@bestiaria.com)
HTTP://www.bestiaria.com/