How can I force the use-only-after-declaration?
Marco Spedaletti
NOSPAM at NOSPAM.IT
Thu Dec 19 06:45:44 EST 2002
More information about the Python-list mailing list
Thu Dec 19 06:45:44 EST 2002
- Previous message (by thread): How can I force the use-only-after-declaration?
- Next message (by thread): How can I force the use-only-after-declaration?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): How can I force the use-only-after-declaration?
- Next message (by thread): How can I force the use-only-after-declaration?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list