<i>lappend/linsert ignore the abstract-list Replace hook on some code paths</i> status still Open with 3 other changes
by
.
D 2026-10-20T21:57:57.170
J icomment Thanks\sfor\slooking\sat\sthis,\sAshok.\r\n\r\nSome\scontext\son\swho\sis\shitting\sit.\sThe\sbit-array\stype\sI\smentioned\sis\sa\sreal\sextension\sthat\simplements\sall\seight\sabstract-list\shooks\sof\sTCL_OBJTYPE_V2\s(length,\sindex,\sslice,\sreverse,\sgetElements,\ssetElement,\sreplace\sand\sthe\sin/ni\soperator).\slappend,\sand\slinsert\sin\sthe\suncompiled\scase,\sare\sthe\sonly\scommands\sI\shave\sfound\swhere\sthe\score\sconverts\sthe\svalue\sto\san\sordinary\slist\sitself\sinstead\sof\scalling\sone\sof\sthe\shooks.\r\n\r\nOn\syour\spoint\sthat\sthere\sis\sno\slappend\shook:\sthe\sReplace\shook\sis\sindeed\senough\sfor\sus,\ssince\san\sinsert\sat\sthe\send\sis\scheap\sfor\sthis\stype,\sso\srouting\slappend\sthrough\sit\s(as\sin\sthe\spatch\sabove)\sis\sall\swe\sneed.\sI\scan\ssee\stypes\swhere\sa\sdedicated\shook\swould\sbe\sfaster,\sand\sif\sone\sis\sadded\swe\swould\sbe\shappy\sto\simplement\sit\sas\swell.\sNote\sthat\sthe\spatch\sI\sposted\sonly\scovers\sthe\slappend\spaths;\sthe\suncompiled\ssingle-element\slinsert\sat\sthe\send\sgoes\sthrough\sTcl_LinsertObjCmd,\swhich\sI\shave\snot\spatched,\sso\sthat\scase\sstill\sconverts.\r\n\r\nAn\supdate\son\sthe\s"not\stested"\snote\sin\sthe\sticket:\sI\shave\ssince\stried\sTcl\s9.0.4,\sand\sit\sdiffers\sa\slittle\sfrom\s9.1.\sA\splain\slappend\sof\sone\selement\skeeps\sthe\stype\sat\sthe\stop\slevel\sof\sa\sscript\sbut\sloses\sit\sunder\seval\sand\suplevel\s(9.1\skeeps\sit\sthere)\sas\swell\sas\sin\sa\sproc;\slappend\s{*}$list\skeeps\sthe\stype\severywhere\son\s9.0.4,\sincluding\sin\sa\sproc,\swhere\s9.1\sloses\sit.\sIf\sa\sfix\sgoes\sin,\sit\smay\sbe\sworth\sbackporting\sto\s9.0.x.
J login rocketship98
J mimetype text/plain
K 0c82728f85760f36361fe42a15f55453c94d285d
U rocketship98
Z 960ab353f7a2fa12c40bf8d05c20aae5