<i>-exact version matching broken</i> status still Open with 4 other changes
by
.
D 2007-05-19T03:12:21
J icomment Logged\sIn:\sYES\s\nuser_id=80530\nOriginator:\sYES\n\n\nOk,\sI\ssee\s(at\sleast\ssome\sof)\sthe\nmotivation\sfor\sthis\snow.\s\sIt\scomes\ndown\sto\sa\sdeficiency\sin\sthe\sTcl_InitStubs()\ninterface.\n\nConsider\sTk\s8.4\sas\san\sexample\sof\sa\sstubs\nenabled\sextension.\s\sIt\scalls\n\n\s\sTcl_InitStubs(interp,\sTCL_VERSION,\s1)\n\nThe\sTk\sheader\sfile\sforces\sTCL_VERSION\nto\sbe\s"8.4",\sso\sthis\scall\sis\slooking\sto\ninitialize\s"exactly"\sversion\s8.4\sof\nthe\sTcl\sstub\stable.\n\nTrouble\sis\sthat\sthe\sstub\stable\sitself\ndoes\snot\sinclude\sany\sversion\sfield.\nInstead\sthe\s"version"\sof\sa\sstub\stable\nis\simplicitly\staken\sto\sbe\sthe\ssame\nas\sthe\sversion\sof\sthe\s"Tcl"\spackage\nin\sthe\ssame\sinterp,\svia\sa\scall\sin\nTcl_InitStubs:\n\n\s\sTcl_PkgRequireEx(interp,\s"Tcl",\n\s\s\s\s\s\sversion,\sexact,\s&pkgData);\n\nwhere\sversion\sand\sexact\shave\sthe\nvalues\sTCL_VERSION\sand\s1\spassed\sinto\nTcl_InitStubs\soriginally.\n\nSince\sthe\shistory\shas\sbeen\sthat\nTcl\sonly\s[package\sprovide]d\sa\nTcl\sversion\sto\sM.m\sresolution,\sthe\nimplicit\srule\sis\sthat\sthe\sTcl\sstub\ntable\swas\sversion\s8.4\sthroughout\nthe\sentire\s8.4*\sseries\sof\sreleases.\n\nThis\shas\sa\sfew\simplications.\s\sFirst\na\svalue\sof\s1\sin\sthe\s"exact"\sargument\nto\sTcl_InitStubs()\shas\salways\smeant\nthat\sany\sstub\stable\sfrom\sany\s8.4*\nrelease\sof\sTcl\sis\sacceptable,\sbut\nthat\sany\stable\sfrom\s8.3*\sor\s8.5*\nreleases\sis\snot.\s\sFor\sextensions\slike\nTk\sthat\smay\sbe\saccessing\svolatile\sinternals,\nthis\sis\sa\sgood\skind\sof\srequirement\sto\sbe\nable\sto\sexpress.\n\nNote\sthat\sthe\shistory\sof\shaving\sa\ssingle\nversion\sidentifier\sfor\sall\sthe\sstub\stables\nof\sall\sTcl\sreleases\smatching\s8.4.*\nindicates\sthat\sthe\sstub\stable\sis\smeant\nto\sbe\sunchanging\sthrough\sthe\swhole\n8.4*\sseries\sof\sreleases.\s\sExcept\sfor\sthe\nbackport\sof\sTIP\s218,\swe've\seven\shonored\nthat\s(in\sthe\sdefault\sbuild\sanyway).\n\nAfter\sTIP\s268,\s[package\sprovide\sTcl]\nnow\sreturns\sthe\sfull\spatchlevel\sversion\nnumber.\s\sSince\sthe\sworkings\sof\nTcl_InitStubs()\swere\snot\smodified\sby\nthat\sTIP,\swe\snow\seffectively\shave\na\snew\sversion\sof\sthe\sstub\stable\swith\nevery\srelease\sof\sTcl.\s\sThis\smeans\nthat\sTcl_InitStubs()\scalls\swith\sexact=1\ncan\sonly\smatch\sa\ssingle\srelease\sof\sTcl,\nwhich\sis\snot\sdesirable.\s\sFurthermore\npassing\sboth\sTCL_VERSION\sand\sexact=1\ncan\sonly\smatch\sthe\sstub\stable\sto\sbe\nfound\sin\sTcl\s8.5.0\swhich\sdoes\snot\syet\nexist.\s\sThis\smeans\swithout\ssource\scode\nchanges,\sTk\s8.5a6\scould\snot\s[load]\sinto\nany\sexisting\sTcl\sinterp.\n\nTk\s8.5a6\shas\saddressed\sthis\sin\spart\nby\schanging\sits\sTcl_InitStubs\scall\sto:\n\n\s\sTcl_InitStubs(interp,\sTCL_PATCH_LEVEL,\s1)\n\nWith\sthe\straditional\smeaning\sof\s-exact\nmatching,\sthis\swould\spermit\sa\sTk\s8.5a6\nbuilt\sagainst\sTcl\s8.5a6\sheader\sfile\sto\s[load]\sinto\na\sTcl\s8.5a6\sinterp,\sbut\sno\sother\srelease\sat\sall.\nThis\slevel\sof\slockstep\sforced\seven\son\sthe\nstubs\sinterface\sis\sundesirable.\n\nThe\sold\sability\sof\sTcl_InitStubs\sto\napprove\sthe\sstub\stable\sof\sall\sTcl\nreleases\smatch\s8.5*\swas\srestored\sby\nthe\sincomptible\sinterpretation\sof\n-exact\smatching\snoted\sin\sthe\soriginal\nbug\sreport\shere.\s\sIt's\san\sexample\nof\srestoring\sone\skind\sof\scompatibility\nby\sdestroying\sanother\skind.\n\nI\sthink\sfor\sthe\s8.5\sseries\sof\sreleases,\nthis\sissue\scan\ssuccessfully\sbe\ssolved\nby\smaking\sappropriate\schanges\sto\nTcl_InitStubs.\s\sI'll\sbe\slooking\sinto\sthat.\n\n\n
J login dgp
J mimetype text/plain
J username dgp
K 1578344fffffffffffffffffffffffffffffffff
U dgp
Z 96c0f072efb274cbbe890a5a9b91c3bd