Sujet : Differing namespace behavior in Tcl 9.0b2 De : amangogna (at) *nospam* modelrealization.com (Andrew Mangogna) Groupes :comp.lang.tcl Date : 16. Jul 2024, 22:52:17 Autres entêtes Organisation : A noiseless patient Spider Message-ID :<v76q2g$1ej2c$1@dont-email.me> User-Agent : Pan/0.155 (Kherson; fc5a80b8)
I have been out of the Tcl loop for a while, but have been porting an old "C" based extension of mine to Tcl 9.0b2. The port went well, required very few changes, but I have some differing behavior that I'm trying to track down. The package consists of an ensemble command, "ral" which has three subcommands implemented in the "::ral" namespace. Each of the subcommands is also exported from the namespace. The following shows the problems:
% info patchlevel 9.0b2 % package require ral 0.13.0 <- new port to Tcl 9 % info commands ral ral % namespace export tuple relation relvar <- unexpected -- ral exports these commands <- but they shouldn't appear in the global <- namespace % ral relvar names % relvar names invalid command name "relvar" <- expected, just as Tcl 8.6 % namespace import ::ral::* % relvar names invalid command name "relvar" <- unexpected % namespace export tuple relation relvar <- again, not sure why these appear
So my question is, "Is there some namespace / ensemble changes that I've not been able to track down?" It appears that the ensemble works correctly, but that the exported commands are no longer exported or available.