Skip to content
Tcl Source Code Artifact [fca85637fe]
Login

Artifact [fca85637fe]

Artifact fca85637fef2adecc905125fb8efd33b5af1f31dd1c6f722e0903b1592d9e687:

Ticket change [fca85637fe] - Ticket [e58d7e19e937496f|e58d7e19e9] <i>Upwards compatibility of TclObjTypeHasProc()</i> status still Open with 3 other changes by jan.nijtmans on 2023-07-29 20:57:02.
D 2023-07-29T20:57:02.035
J icomment Let's\sactually\sdemo\sthe\sproblem.\sSuppose\sthere\swas\sa\sTcl\sversion\sbefore\s9.0\swhich\sonly\shad\sTCL_OBJTYPE_V1;\sindexProc\sand\severything\safter\sthat\sdidn't\sexist\syet.\sIn\s9.0,\swe\shave:\r\n<pre>\r\n#\s\s\sdefine\sTCL_OBJTYPE_V1(a)\s1,\s\\\r\n\t\s\s\s\sa,0,0,0,0,0,0\s/*\sTcl\s9\sVersion\s1\s*/\r\n</pre>\r\nIn\sthis\spre-9.0\sheader\sit\swould\shave\slooked\slike\sthis:\r\n<pre>\r\n#\s\s\sdefine\sTCL_OBJTYPE_V1(a)\s1,\s\\\r\n\t\s\s\s\sa\s/*\spre-Tcl\s9\sVersion\s1\s*/\r\n</pre>\r\nthat\smeans\s-\sindexProc\sand\severything\safter\shas\srandom\scontent,\sshould\snever\sbe\saccessed\swhen\srunning\sin\s9.0.\r\n\r\nWe\scan\ssimulate\ssuch\spre-9.0\sV1\sextension\sin\s9.0,\sby\schanging\sit\sto:\r\n<pre>\r\n#\s\s\sdefine\sTCL_OBJTYPE_V1(a)\s1,\s\\\r\n\t\s\s\s\sa,INT2PTR(1),INT2PTR(1),INT2PTR(1),INT2PTR(1),INT2PTR(1),INT2PTR(1)\s/*\sTcl\s9\sVersion\s1\s*/\r\n</pre>\r\nIf\sany\safter\sindexProc\sis\snot\saccessed\sit\sshouldn't\smatter\s.....\s\sWell,\sit\sdoes!\r\nSee:\s[https://core.tcl-lang.org/tcl/vinfo/cdcadcb3792b117e?diff=2].\sRunning\sthis\sbranch,\stclsh\simmediately\scrashes.\r\n\r\nBrian,\swhat\smore\sproof\sdo\syou\sneed?\sDoes\sAshok's\sexplanation\smake\ssense\sto\syou?\r\n\s(to\sme\sit\sdoes!)
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K e58d7e19e937496f179fe711345b415f3f3d31b2
U jan.nijtmans
Z 2b65e9bdf1273a590008c1738690c7c4