<i>Tcl_FindNamespace problem in the Stubs table</i> status still Open with 5 other changes
by
.
D 2003-09-12T00:05:44
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nWell,\sI\sunderstand\swhy\sit's\sdesirable\sfor\nan\sextension\sauthor\sto\shave\sboth\sthings:\n1)\sUse\sof\sthe\slatest\sTcl\sfor\shimself;\s2)\sSupport\nfor\sthe\searliest\sTcl\spossible\sused\sby\sthe\susers\nof\shis\scompiled,\sstub-enabled\sextensions.\n\nIt's\sa\sbit\sless\sclear\sto\sme,\sgiven\syour\stalk\sof\nchanging\sstruct\ssizes\swhether\ssupport\sis\n100%\sfeasible.\s\sEven\sless\sso\sif\swe're\stalking\nabout\sextensions\sthat\sintrude\sinto\sthe\sTcl\sinternals.\n(for\sexample,\shttp://mini.net/tcl/3708\s)\n\nAnother\sthing\sthat's\sclear\sto\sme\sis\sthat\swe\sare\nsuffering\sfrom\sbad\sdecisions\smade\slong\sago,\nby\snone\sof\sus,\sso\swe\scould\sbenefit\sfrom\sa\slot\nof\smutual\spatience\slooking\sinto\sthis.\n\nThere's\san\sextra\scomplexity\shere\sthat,\stechnically,\nuntil\sTIP\s139,\sTcl_FindNamespace\shas\sbeen\sa\nprivate\sinterface,\sand\swe've\sbeen\sfairly\sruthless\nabout\sdropping\scompatibility\sof\sprivate\sinterfaces\nat\sminor\sreleases.\s\sSo\sthe\scurrent\sHEAD\sis\njustifiable.\s\sFrom\sthat\sperspecitve,\sextensions\nthat\scall\sthe\snewly\spublic\sTcl_FindNamespace\sshould\njust\sbe\ssure\sto\sTcl_InitStubs(interp,\s"8.5",\s0);\sbecause\nTcl_FindNamespace\sfirst\sappears\sin\sTcl\s8.5.\n\nThat\ssaid,\sTcl_FindNamespace\sand\sfriends\sare\nused\sby\smany\sgood\sand\sfaithful\sTcl'ers,\sand\sTcl\nextensions,\sand\sit's\sworthwhile\sto\sfind\sa\sbetter\sway\nto\saccomodate\sthem\sif\swe\scan.\n\nTechnically,\sthis\sseems\ssimilar\sto\sthe\sissues\nin\sTIP\s27\s(CONSTification).\s\sA\ssymbol\sis\s\ndefined\sin\stwo\sconsecutive\sreleases\sof\sTcl\sto\nmean\sdifferent\sthings,\sand\swe\shave\scompatibility\nproblems\swith\speople\swho\sdid\snot\sexpect\sit\sto\nchange.\s\sSeems\swe\scould\sadopt\sa\scompatibility\ssupport\nsimlar\sto\sthe\sTIP\s27\scompatibility\ssupport.\swith\sa\nUSE_PRIVATE_NAMESPACE_API\nmacro,\sthat\swhen\s#define\s'd,\swould\ssuppress\sthe\ndefinition\sof\sthe\snewly\sexposed\sand\snot\sre-named\sroutines\nby\stcl.h,\sso\sthat\sthey'd\sbe\savailable\sfor\sdefinition\sby\ntclInt.h\sfor\sthose\snaughy\sextensions\sthat\sare\s#include-ing\sit.\n\nThe\sdefault\swould\sbe\sto\snot\s#define\nUSE_PRIVATE_NAMESPACE_API,\sand\sthe\nnew\sNamespace\sroutines\swould\shave\stheir\nnew,\sand\sfuture\sdefinitions,\sof\spointing\sinto\sthe\npublic\sstub\stable.\s\sDefault\soperation\sought\sto\nbe\sthe\srecommend\susage\sgoing\sforward,\snot\nlooking\sback.\n\n\n
J login dgp
J mimetype text/plain
J priority 5\sMedium
J username dgp
K 803489ffffffffffffffffffffffffffffffffff
U dgp
Z ff2339c8a40a315d7a30ea0628685d45