From: Will D. <wi...@wj...> - 2006-11-23 15:57:22
|
On Nov 23, 2006, at 2:21 AM, Kristoffer Lawson wrote: > On 23 Nov 2006, at 12:09, Andreas Leitgeb wrote: > >> If I were to write code that depends on numbers behaving as commands >> the way as specified by this TIP, I wouldn't feel comfortable at all >> for the mere possibility, that any number could have been redefined >> and behaving differently. > > Well, up to a point you have the same situation with any command you > use. In theory any package could silently overwrite any of the > commands you are using in your code. So far I have never had a > problem with this, but it is a possibility. And it used to happen more often; the reason it doesn't happen very much these days is because package authors are extremely careful to put package code in namespaces and leave the global namespace alone. It's understood that the global namespace is for the use by application code. If this TIP went in, any package that used numbers-as-commands in this way would be vulnerable to application code that defined its own commands with numeric names--so vulnerable that I, at least, and I suspect many other authors, simply wouldn't use this feature in package code. Ever. Will > > / http://www.fishpool.com/~setok/ > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Tcl-Core mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-core ------------------------------------------------------------------ will -at- wjduquette.com | Catch our weblog, http://foothills.wjduquette.com/blog | The View from the Foothills |