Skip to content
Tcl Source Code Artifact [b4ad0b2c2d]
Login

Artifact [b4ad0b2c2d]

Artifact b4ad0b2c2de304aa021598e29529b44ba9501426:

Ticket change [b4ad0b2c2d] - New ticket [2965424fffffffff|2965424fff] <i>Tcl_OOInitStubs has no version parameter</i>. by nijtmans on 2010-03-08 13:08:51.
D 2010-03-08T13:08:51
J assignee dkf
J cmimetype text/plain
J comment Compare\sthe\sfollowing:\n\s\s\sTcl_InitStubs(interp,\s"8.5",\s0)\nwith\n\s\s\sTcl_OOInitStubs(interp)\n\nThe\sversion\sparameter\sof\sXX_InitStubs\smeans\sthe\nlowest\sversion\ssupported\sby\sthis\sextension.\sHowever,\nin\sTclOO\sthis\svalue\sis\salready\sfilled\sin\sbeing\sTCLOO_VERSION,\nwhich\sis\sthe\s"compiled-against"\sversion.\n\nThe\sproblem\swith\sthis\sis,\swhen\ssomeone\scompiles\san\sextension\nusing\sTCLOO_VERSION\s=\s"0.6.3",\sbut\sruns\sit\swith\sTcl\s8.6b1,\nthe\sXXInitStubs\scall\swill\s\sfail,\seven\sthough\sit\sshould\srun\sperfectly.\n\nThere\sis\sa\sdifference\sbetween\sthe\s"lowest\ssupported\sversion",\nand\sthe\s"compiled\sagainst"\sversion.\sIt\sshould\sbe\spossible\sto\ncompile\sa\sTclOO\sextesion\sagainst\sTclOO\s0.6.3\sand\srun\sit\nusing\sTclOO\s0.6.2:\sAs\slong\sas\sno\s0.6.3-specific\sfeatures\sare\nused\s(and\sthe\sextension\sdeveloper\sis\sthe\sonly\sone\sknowing\nthis),\severything\sshould\sbe\sfine.\n\nMore\sspecific,\sI\ssuggest\sto\schange:\n#define\sTcl_OOInitStubs(interp)\s\\\nTcl_PkgRequire((interp),"TclOO",TCLOO_VERSION,0)\nto\n#define\sTcl_OOInitStubs(interp,\sversion)\s\\\nTcl_PkgRequire((interp),"TclOO",\sversion,\s0)\nMaybe\swe\sshould\seven\shave\san\s"exact'\nparameter,\sjust\sas\sthe\sother\s*StubInit\sfunctions.\s\n\nThis\sneeds\sto\sbe\scoordinated\swith\sItcl\sand\stdbc,\nbecause\sit\sintroduces\sa\ssource\sincompatiblility!\nBinary\scompatibility\sis\snot\saffected,\sexcept\sfor\nthe\s"exact"\sparameter!\n\nB.T.W:\sTdbc_InitStubs\shas\sthe\ssame\sproblem,\sbut\nItcl_InitStubs\sis\sO.K.\nB.T.W.:\sPersonally,\sI\sdon't\smind\svery\smuch\sabout\sthe\n"exact'\sparameter,\sbut\sI\scould\simagine\sthe\sdesire\nto\skeep\sit\sexactly\sthe\ssame\sas\sTcl.
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 7\sHigh
J resolution None
J status Open
J submitter nijtmans
J subsystem 35.\sTclOO\sPackage
J title Tcl_OOInitStubs\shas\sno\sversion\sparameter
J type Bug
K 2965424fffffffffffffffffffffffffffffffff
U nijtmans
Z 3f8ec5ec4fec766287e3d1e652967890