Skip to content
Tcl Source Code Artifact [c44f174801]
Login

Artifact [c44f174801]

Artifact c44f17480170e2f657a35a31f3c90c700c45055a:

Ticket change [c44f174801] - Closed ticket [ba79c2f0ce408c09|ba79c2f0ce]: <i>Use of Itcl with auto load and namespace import result in command errors</i> plus 9 other changes by dgp on 2017-02-21 19:53:39.
D 2017-02-21T19:53:39.014
J assignee dgp
J closedate 2457806.32892377
J closer dgp
J icomment \r\nI\slooked.\sI\stried.\sI\swill\snot\sfix\sthis.\r\n\r\nItcl\sbreaks\sTcl's\sbuilt-in\shackery\sto\stry\r\nto\smake\sthe\ssnapshot-oriented\scommand\r\n[namespace\simport]\s"Do\sWhat\sYou\sMean"\sin\r\ncombination\swith\sthe\s"delay\suntil\sthe\slast\r\nminute"\sscheme\sof\sthe\sbuilt-in\r\nauto-loader.\s\sChoose\sone\sor\sthe\sother,\r\nmagical\simports\sof\sautoloaded\scommands\sor\r\nuse\sof\sthe\sItcl\spackage,\sbut\syou\scannot\shave\sboth.\r\n\r\nAccommodating\sthis\swas\sa\sdumb\sidea\sto\r\nbegin\swith.\s\s[namespace\simport]\shas\r\nsnapshot\ssemantics.\s\sThat's\sdocumented.\r\nSo\screate\scommands\sbefore\syou\sattempt\r\nto\s[namespace\simport]\sthem.\s\sYou\scannot\r\nmake\swater\sthat\sis\snot\swet.\s\sYou\scannot\r\ntake\sa\ssnapshot\sof\ssomething\sthat\shasn't\r\nyet\sbeen\sbrought\sinto\sexistence.\r\n\r\nBeyond\sthat,\sgive\sserious\scontemplation\r\nto\sditching\sall\suse\sof\sTcl's\sbuilt-in\r\nauto-load\ssystem\scompletely.\s\sIt's\sancient,\r\nnot\swell-maintained,\sand\sthe\scase\sfor\sit\r\nis\svery\shard\sto\smake\sanymore.\s\sIf\syou\scan\r\nmake\sthe\scase,\syou\scan\smake\syour\sown\r\nstub-powered\sauto-loading\sscheme\sthat\sworks\r\nbetter\sin\severy\sway\sthan\sthis\srelic.\r\n\r\nAs\sa\sworkaround\sto\sthe\strouble\sreported\sin\r\nthe\sticket,\syou\scould\sremove\sthe\r\ndefinition\sof\s[::auto_import]\sfound\sin\r\nthe\sitcl.tcl\sfile\sinstalled\sas\spart\sof\r\nyour\sItcl\sinstallation.\s\sThat\swill\savoid\r\nthe\sbug\sassociated\swith\sthis\sticket,\sbut\r\nI\shave\sno\sidea\swhat\simpact\sthat\smay\shave\r\non\sthe\sinternal\sexpectations\sof\sItcl.\r\nTest\ssuite\sdoesn't\scare,\sbut\sonly\sa\sfool\r\nthinks\sthe\sItcl\stest\ssuite\sis\scomprehensive.\r\n\r\nThat\sworkaround\sis\swhat\sI\swould\sadapt\sif\r\nI\shad\sconfidence\sit\swould\snot\supset\s\r\nestablished\sItcl\suses.\s\sAt\sthis\spoint\r\nthough,\sthe\sonly\swinning\smove\sis\snot\sto\splay.
J login dgp
J mimetype text/plain
J resolution Wont\sFix
J status Closed
J subsystem 81.\sBundled\sPackages
J title Use\sof\sItcl\swith\sauto\sload\sand\snamespace\simport\sresult\sin\scommand\serrors
K ba79c2f0ce408c09c8967eb037503251c4b525ac
U dgp
Z f67d7b7349bc2b41ee0511351e0d6b45