From: miguel s. <mi...@ut...> - 2004-05-25 02:44:03
|
miguel sofer wrote: > Vince Darley wrote: > >> I notice that the latest cvs head has an incompatibility in the whole >> variable resolution process which, while it doesn't (apparently) break >> any >> of the test suite, does break a lot of code that I'm exposed to. The >> basic incompatible change is that this: >> >> namespace eval foo {} >> >> proc foo::bar {} { >> global foo::name >> set foo::name 1 >> } >> >> foo::bar >> >> ->"can't set "foo::name": parent namespace doesn't exist" >> >> throws the above error, which it never used to throw -- in fact the above >> code worked fine (minus 'namespace') from Tcl 7.x through 8.5a1. But now >> in 8.5a2 it throws an error. > > > This is a bug, not by design. Will fix or revert. Sorry. > >> >> I would like to raise the fact that this change has been made and ask >> that >> some proper discussion take place of what behaviour ought to be >> documented >> and what behaviour ought to be backwards compatible before 8.5 is >> finalized. While the previous behaviour may not have been documented >> very clearly, it did have the benefit of working! I have opened bug ticket #959786 to record the discussion of this issue (https://sourceforge.net/tracker/index.php?func=detail&aid=959786&group_id=10894&atid=110894) Miguel |