How can I force the use-only-after-declaration?
Marco Spedaletti
NOSPAM at NOSPAM.IT
Thu Dec 19 06:45:44 EST 2002
Hi!
In other languages, I am used to declare variables before the use.
The translators for those languages give me an error/warning if I use a
variable that has not been declared.
Example (C-like syntax):
...
int a, c;
a = 100; /* Ok! */
b = 200; /* Error! */
c = 300; /* Ok! */
...
There is a way to emulate it using Python?
Bye!
Marco.
More information about the Python-list
mailing list