<i>incompat in ::errorInfo/::errorCode maintenance</i> status still Closed with 4 other changes
by
.
D 2007-06-09T10:59:52
J icomment Logged\sIn:\sYES\s\nuser_id=80530\nOriginator:\sNO\n\n\nI\slike\sto\sthink\sthat\sin\sTcl\s8.5,\sthe\svariables\n::errorInfo\sand\s::errorCode\sthemselves\shave\nbecome\slegacy\sfeatures.\s\sAnd\sfor\slegacy\sfeatures\nwe\smight\sas\swell\skeep\sas\sfull\slegacy\scompat\sas\nwe\sreasonably\scan.\n\nSince\s[catch]\sis\sextended\sto\scapture\sa\ndictionary\sof\sreturn\soptions,\sthere's\nno\sneed\sto\sread\spost-catch\sinfo\sfrom\n::errorInfo\sor\s::errorCode;\sthe\ssame\sinfo\nis\sbetter\sretrieved\sfrom\sthe\sreturn\noptions\sdictionary.\n\nSimilarly,\ssince\s[interp\sbgerror]\spermits\nregistration\sof\sa\sbackground\serror\shandler\nthat\sgets\spassed\sthe\sfull\sreturn\soptions\ndictionary,\sthere's\sno\sneed\sfor\ssuch\sa\nhandler\sto\saccess\ssuch\sglobal\svariables\sany\nlonger\seither.\n\nSo,\sin\smy\smind,\sthe\s"right"\sway\sfor\sscripts\nwritten\sfor\sTcl\s8.5\sto\suse\sthe\s::errorInfo\nand\s::errorCode\svariables\sis\snot\sto\suse\sthem.\n\nThis\smeans,\sthat\sfor\sme\sthe\sbest\ssupport\nfor\sscripts\sthat\sdo\suse\sthose\svariables\sis\nto\smaintain\sscript-apparent\sconsistency\swith\nhow\sthey\sworked\sin\s8.4.\s\sSome\spatchwork,\nlike\sthis\sone,\sI\sdon't\sreally\slike\smuch,\nand\sprobably\swould\snot\shave\sdone,\sexcept\nsomeone\sactually\sdid\snotice\sthe\sdifference.\n\nI\sfigure\sif\ssomeone\snoticed\senough\sto\slog\na\sreport,\ssomeone\selse\sprobably\shas\sscripts\nthat\sdepend\son\sthe\sdifference\s\nand\swill\ssuffer\sif\swe\sdon't\srestore\scompat.\n\nOther\ssimilar\sexamples\sare\s1397843\sand\s1693252.\n\nI'd\sbe\shappier\sif\sscripts\sdid\snot\sexist\nthat\srelied\son\ssuch\ssubtleties\sof\sthe\nformer\simplementation\sof\smaintenance\nof\sthe\s::errorCode\sand\s::errorInfo\nvariables,\sbut\sexist\sthey\sdo,\sand\nkeeping\scompat\swith\stheir\sneeds\sis\seasily\nenough\sdone.\n\n\n
J login dgp
J mimetype text/plain
J username dgp
K 1649062fffffffffffffffffffffffffffffffff
U dgp
Z eca6b3623f9e4d793fd7bb2fe77e5299