<i>Tcl_InitStubs() Broken As Designed</i> status still Open with 4 other changes
by
.
D 2012-12-07T15:26:34
J icomment >we\sagree\sthat\n\s\s\s\sTcl_InitStubs(interp,\s"8.6-",\s0)\n>is\s*never*\sa\ssensible\sthing\sto\sdo,\sright\n\nOn\s64-bit\splatforms\swe\sagree\son\sthat,\sbut\non\s32-bit\splatforms\sI\ssee\sno\sproblem.\n\n>\sCompiling\sagainst\sTcl\s8\sheaders,\sbut\spassing\n>\s"9.0"\sas\san\sargument\sto\sTcl_InitStubs()\scannot\sever\n>\swork\sand\sis\salways\sa\smistake.)\nThere\sis\sno\sreason\sat\sall\sto\sdo\sthat:\sIt\scan\sonly\swork\nwhen\sthe\sextension\suses\sthe\scommon\ssubset\sof\nTcl\s8.6\sand\s9.0\sAPI's,\sbut\sthen\sit\smakes\sno\ssense\nto\sspecify\s"9.0".\sSpecifying\s"8.6-"\swould\smake\smore\ssense.\n\n\nThe\sconsensus\sshould\sbe:\n\s\s\s\sTcl_InitStubs(interp,\s"8.6",\s0)\nmeans\sthat\sthis\sextension\suses\sthe\s8.6\sAPI,\sso\scompiles\sand\nruns\swith\sany\s8.x\srelease\swith\sx\s>=\s6.\n\s\s\s\sTcl_InitStubs(interp,\s"9.0",\s0)\nmeans\sthat\sthis\sextension\suses\sthe\s9.0\sAPI,\sso\scompiles\sand\nruns\swith\sany\s9.x\srelease.\n\s\s\s\sTcl_InitStubs(interp,\s"8.6-",\s0)\nmeans\sthat\swhen\scompiled\swith\sTcl\s8.6\sheaders\sit\swill\srun\swith\nTcl\s8.6,\sand\swhen\scompiled\swith\sTcl\s9.0\sheaders\sit\swill\srun\nwith\sany\s9.x\srelease.\sIn\sTcl9\ssome\sAPI's\swill\sbe\sremoved,\nothers\swill\sbe\sadded.\sAny\sextension\sspecifying\s"8.6-"\scan\nonly\suse\sthe\scommon\ssubset\sAPI's\sof\s8.6\sand\s9.0.\s(\nassuming\sthe\sstub\sentrie\spositions\sare\skept\sequal)\n\nThis\salso\smeans\sthat\sno\sextension\scan\sclaim\s"8.6-"\nduring\sthe\salpha/beta\speriod\sof\sTcl\s9.\sOne\smethod\nto\senforce\sthat\sis\sin\stcl.h\s9.0\sspecifying:\n#if\sTCL_RELEASE_LEVEL\s==\sTCL_FINAL_RELEASE\n#define\sTcl_InitStubs(interp,\sversion,\sexact)\s\\\n\s\s\s\sTclInitStubs(interp,\sversion,\sexact,\sTCL_VERSION,\sTCL_STUB_MAGIC)\nelse\n#define\sTcl_InitStubs(interp,\sversion,\sexact)\s\\\n\s\s\s\sTclInitStubs(interp,\sTCL_PATCH_LEVEL,\s1,\sTCL_VERSION,\sTCL_STUB_MAGIC)\n#endif\n\nBut\s-\sas\sproven\s-\sclaiming\s"8.6-"\scompatibility\scannot\sever\swork\nacross\sthe\s8.6/9.0\sborder\son\s64-bit\splatforms.\sThat's\swhat\sthe\nMAGIC\schange\sis\sneeded\sfor.\n\nRegards,\n\s\s\s\s\s\s\s\s\s\sJan\sNijtmans\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 3588687fffffffffffffffffffffffffffffffff
U nijtmans
Z f34d4ad7d14956be4d88112a597ca37d