Brian Quinlan <[EMAIL PROTECTED]> writes: > I'm not trying to be silly. I am trying to get a handle on the > semantics that you are proposing. So we now have two requirements for > the new declaration syntax (please let me know if I'm wrong): > > o the variable must be declared > o the variable must be assigned
These would both be errors that the compiler could and should check for, if declaration checking is enabled. However, they would not be syntax errors. > I would assume that you would make it so that assignment and > delaration happen as part of the same statement? Sure, why not. > Right now, the compiler DOES NOT examine the contents of the other > modules. All it does is generate an IMPORT_NAME instruction which is > evaluation during runtime. In that case the other module gets compiled when the IMPORT_NAME instruction is executed. That says that compile time and runtime are really the same thing in the current system. > So are you proposing that the compiler now scan other modules during > compilation? Yeah, maybe some optimization is possible. -- http://mail.python.org/mailman/listinfo/python-list