<i>Regression with TIP #636 in foreach</i> status still Open with 3 other changes
by
.
D 2023-07-12T13:02:36.518
J icomment My\sanalysis\smight\sbe\smisplaced\sso\swould\sbe\suseful\sto\shave\s@pooryorick\scomment\sbut\s...\r\n\r\nJan,\sI\snoticed\syou\sadded\sint,\sdouble,\sindex\sas\sadditional\s"protected"\stypes\sto\sTclDuplicatePureObj.\sSince\slists\s(abstract\sand\straditional)\scan\salso\shave\sthe\ssame\sissue\s-\smultiple\sstring\srepresentations\sfor\sthe\ssame\sinternal\srep\s-\sshould\sthose\salso\sbe\sprotected.\sIn\swhich\scase\sone\swonders\swhat's\sleft\sand\swhether\sthe\swhole\sexercise\sis\sworthwhile.\r\n\r\nOriginally,\sthe\slist\scode\sused\sTclListObjCopy\sas\sa\sspecialized\sinternal\sfunction.\sIt\swas\simportant\sfrom\sa\sperformance\sperspective\swithin\sits\slimited\scontext.\s\sTclDuplicatePureObj\sgeneralizes\sit\sto\sdo\smore\sbut\sgiven\sit\sdoes\snot\spreserve\svalue\ssemantics\sits\sapplicability\sis\slimited\sto\sthose\ssame\suse\scases.\sThat\shints\sto\sme\sthat\sthe\sprotections\sbe\sremoved,\sand\sthe\ssemantics\sof\sthe\sfunction\schanged\sto\sreflect\svalues\sare\snot\spreserved,\sonly\sintreps\sare,\sand\sall\scall\ssites\schanged\sto\srevert\sto\sTcl_DuplicateObj\swhen\sthey\sfall\soutside\sthose\slimited\suse\scases.\r\n\r\nAlternately,\seach\stype\scould\srevert\sback\sto\sits\sown\sspecialized\s"internal\scopy"\sas\sthe\slist\simplementation\sused\sto.\sThis\salso\savoid\sall\sthe\schecks\spresent\sin\sthe\s"generalized"\sTclDuplicatePureObj.
J login apnadkarni
J mimetype text/x-markdown
K a34733451b2cf189528061944466cf7ce7015008
U apnadkarni
Z dc304b936f87d5a43338c376f3025665