From: Jan N. <jan...@gm...> - 2008-12-12 10:43:06
|
2008/12/12 Daniel A. Steffen <da...@us...>: > No, if you want to stay backwards compatible, there is no way around a > second hash table IMO, otherwise you cannot avoid key collision of > ordinary entries (e.g. key "tk" for package "tk") with phony entries > (e.g. case-folded key "tk" for package "Tk") Yes, you are right. And performance is no issue here, because the fallback search is only done if the first one failed. > This scheme would seem to provide most of the benefits of TIP339 while > being fully backwards compatible w.r.t existing successful [package > require]s in the presence of case conflicting package names. Right! > Of course existing _failing_ [package require]s might become > successful under this, which could be an issue for some code, but that > should still be a much lesser incompatibility than existing successful > [package require]s possibly loading a different package than > intended... I Guess I'm getting enthousiastic about this idea. The only thing that needs to be verified if Tcl modules still work: Will a "package require foobar" find the file FooBar-1.0.0.tm? Regards, Jan Nijtmans |