Tcl Source Code

Artifact [baad1c9101]
Login

Artifact baad1c9101d3ec89114f0208cf841d6c0624bd07:

Ticket change [baad1c9101] - Ticket [5edbc4a9f4] It's not possible to manipulate complex data structures inside procs status still Closed with 5 other changes by ferrieux 2015-09-04 10:38:11.
D 2015-09-04T10:38:11.006
J closedate 2457269.94318294
J closer ferrieux
J icomment Extra\sreferences\shide\sin\ssome\sunconspicuous\splaces:\r\n\r\n\s\s\s-\son\sthe\sstack\swhen\syou\spass\sthe\svalue\sas\sargument\r\n\s\s\s-\son\sliterals\r\n\s\s\s-\son\shidden\sstack\slevels\sin\scase\sof\s[interp\salias]\r\n\s\s\s-\setc.\r\n\r\nIn\syour\scase,\sthe\sone\sthat's\sstriking\sis\sthe\sliteral.\sUse\s[expr\srand()]\sto\sgenerate\sa\svalue\sthat\swill\snot\sbe\sstored\sas\sa\sliteral.\r\nThen\sof\scourse\sthe\svar\sitself\sholds\sa\sreference.\sTo\snuke\sthat\sone\stoo,\suse\sthe\sK-free-K\sidiom\s$x[unset\sx].\r\n\r\nWrapping\sup:\r\n\r\n%\sproc\sf\s{}\s{set\sx\s[expr\srand()];puts\s[tcl::unsupported::representation\s$x[unset\sx]]}\r\n%\sf\r\nvalue\sis\sa\sdouble\swith\sa\srefcount\sof\s1,\sobject\spointer\sat\s0x8fe4ec0,\sinternal\srepresentation\s0x1cfea9a0:0x3fef54d0,\sno\sstring\srepresentation\r\n%\snamespace\seval\sB\s{\r\nvariable\svar_B\s[expr\srand()]\r\nputs\s[tcl::unsupported::representation\s$var_B[unset\svar_B]]\r\n}\r\nvalue\sis\sa\sdouble\swith\sa\srefcount\sof\s1,\sobject\spointer\sat\s0x86e9910,\sinternal\srepresentation\s0xab242eb7:0x3fc2175b,\sno\sstring\srepresentation
J login ferrieux
J mimetype text/plain
K 5edbc4a9f40bd2cfce24e291fc57dea51b7f1a50
U ferrieux
Z d51e974953938ef6ee733b752d47331e