<i>[uplevel $list], [uplevel 1 $list] and generation of string representations</i>.
by
.
D 2016-05-05T04:11:20.310
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment The\sfollowing\sscript\scauses\sa\sstring\srepresentation\sto\sbe\sgenerated\sfor\seach\r\nitem\sin\sthe\slist\spassed\sto\s<code>uplevel</code>,\sbut\sif\sa\slevel\sspecifier\sis\r\nadded\sas\sthe\sfirst\sargument\sto\s<code>uplevel</code>,\sstring\srepresentations\r\naren't\sgenerated:\r\n\r\n<code><verbatim>\r\napply\s{{}\s{\r\n\s\s\s\suplevel\s[list\sapply\s{{args}\s{\r\n\s\s\s\s\s\s\s\sforeach\sarg\s$args\s{puts\s[::tcl::unsupported::representation\s$arg]}\r\n\s\s\s\s}}\s{*}[list\s[expr\s1]\s[expr\s2]]]\r\n}}\r\n</verbatim></code>\r\n\r\nThe\sgeneration\sof\sstring\srepresentations\sfor\sitems\sin\ssuch\sa\slist\scould\shave\sa\r\nsignificant\sunexpected\sperformance/memory\simpact.\r\n\r\nTicket\s1017884\sis\srelated,\sbut\sthis\sone-argument\scase\scould\sprobably\sbe\sfixed\r\nwithout\sthe\sbackward-incompatible\schange\ssuggested\sin\sthat\sticket,\ssince\sthe\r\nsingle\sargument\scan\sbe\sassumed\sto\sbe\sthe\sscript\sto\sbe\sevaluated.
J foundin 8.6.5
J is_private 0
J login pooryorick
J priority 5\sMedium
J private_contact e476148cded301ffff84bcdc432536dc0c949e88
J resolution None
J severity Minor
J status Open
J submitter pooryorick
J subsystem 18.\sCommands\sM-Z
J title [uplevel\s$list],\s[uplevel\s1\s$list]\sand\sgeneration\sof\sstring\srepresentations
J type Bug
K b9ecf3ce9801c480620f83b34110f808bd11affb
U pooryorick
Z 21e878349ef53275c559f6ecef9a6fef