Skip to content
Tcl Source Code Artifact [303c766bb1]
Login

Artifact [303c766bb1]

Artifact 303c766bb15cbfbb94df72ce99ac4c2e50c2f235:

Ticket change [303c766bb1] - Ticket [214cc0eb22191236|214cc0eb22] <i>lappend no-op function changes when compiled</i> status still Open with 3 other changes by dgp on 2014-11-05 06:38:01.
D 2014-11-05T06:38:01.131
J icomment Simplest\spossible\sfix\scommitted\sto\strunk:\sdisable\scompile\sof\sthe\r\ninconsistent\scase.\r\n\r\nLeaving\sopen\sin\scase\sdkf\swants\sto\spursue\sactually\spatching\sup\r\nthe\sbehavior\sof\sall\sthe\snew\sbytecode\sinstructions\sinstead.\r\n\r\nThere's\sa\snatural\squestion\sto\sbe\sasked\shere\sabout\swhether\r\n[lappend]\sought\sto\sbe\salways\sproducing\scanonical\slists.\s\sIt\shas\r\nnot\sbeen\sdoing\sso\sup\sto\snow.\s\sThe\sargument\sin\sfavor\sis\sto\s\r\nexpand\sthe\sset\sof\scommands\sone\scan\suse\sto\screate\scommands\r\nfor\sevaluation\swith\scomplete\sconfidence.\r\n\r\nset\sscript\s"a\\nb"\r\neval\s[lappend\sscript\s{*}$args]\s;#\sone\scommand\sor\stwo?!\r\n\r\nThe\sargument\sagainst\sis\sthat\sa\sno-op\sis\sbest\simplemented\sas\r\na\sno-op\s(but\sin\sthat\scase,\swhy\sare\swe\schecking\sfor\slist-ness?).\r\nIn\sparticular,\shere\sa\svariable\sis\sinvolved\sand\sgiven\sthe\schance\r\nto\sleave\sa\svariable's\scontents\suntouched,\swe\sshould\s(and\savoid\r\ntriggering\straces,\setc.).\r\n\r\nI\sdon't\sthink\seither\scase\sis\scompletely\sconvincing\sto\sme,\sleaving\r\nme\suncertain\swhich\sis\smore\sproperly\sthe\sbest\sbehavior\sto\schoose.\r\nIn\sthat\ssituation\sI\sbreak\sthe\stie\sby\skeeping\sconsistency\swith\r\nthe\shistorical\spractice.\r\n\r\nOther\sopinions\sare\sinvited.\s\sIn\sparticular\sexamples\sof\sexisting\r\nuse\sof\s[lappend]\sto\sproduce\sscripts\sfor\sevaluation\swould\sbe\r\ngood\sto\sknow\sabout,\sin\sparticular,\sthose\scombined\swith\s{*}\r\nthat\smight\sdegenerate\sto\sthe\stroublesome\scase.
J login dgp
J mimetype text/plain
K 214cc0eb221912366d9bddbf04e660cf155393b9
U dgp
Z 21a81ed00f39f0832d54f0e8919a69bb