Greg Ewing <[EMAIL PROTECTED]> writes:

> So I'd like to propose that "def time" be modified
> slightly to mean "def time of the outermost function
> that is still inside the scopes containing all the
> names that the case expressions depend on". Not
> sure about the wording of that, but I hope you get the
> idea. In the above example, that would be the def time
> of f(), rather than g().

If it was possible to define constants (as opposed to variables),
including recognizing imported named constants, then the natural
semantics of switch (evaluate cases at the time of the switch)
would be easy to optimize.

-- 
   __("<         Marcin Kowalczyk
   \__/       [EMAIL PROTECTED]
    ^^     http://qrnik.knm.org.pl/~qrczak/
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to