On Sat, 24 Nov 2007 09:12:34 +0100, Ton van Vliet wrote: > Just bringing up something I sometimes miss from good-old Turbo-Pascal > here, which has the WITH statement to reduce the typing overhead with > (long) record/struct prefixes, used like: > > with <prefix> do begin > a = ... > b = ... > end; > > where all variables would be automatically prefixed with the <prefix> > (if present in the already available record definition!)
And here lies the problem: The compiler decides at compile time which names are local to a function and there is no equivalent of a record definition to make that decision. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list