Tcl Source Code

Artifact [c3a8d47a81]
Login

Artifact c3a8d47a81ae263faab9f9cd66533f06bd811d91:

Ticket change [c3a8d47a81] - New ticket [5edbc4a9f4] It's not possible to manipulate complex data structures inside procs. by anonymous 2015-09-04 03:44:01.
D 2015-09-04T03:44:01.858
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment In\sthe\snext\scode,\sit's\snot\spossible\sto\smake\smanipulations\sin\splace,\sbecause\sthe\sreference\scount\sis\sgreater\sthan\s1.\sAnother\spossibility\sis\sthat\s::tcl::unsupported::representation\slies,\sand\sshows\sthe\spointer\sof\sanother\sobject.\r\n\r\nI\sam\sgetting\sthis\soutput:\r\n\s\s\svalue\sis\sa\spure\sstring\swith\sa\srefcount\sof\s4,\sobject\spointer\sat\s0x8528378,\sstring\srepresentation\s"data"\r\n\s\s\svalue\sis\sa\spure\sstring\swith\sa\srefcount\sof\s5,\sobject\spointer\sat\s0x8528378,\sstring\srepresentation\s"data"\r\n\r\nThis\sis\sthe\scode:\r\n\r\n\r\nproc\stest\s{}\s{\r\n\s\s\s\sset\svariable_name\sdata\r\n\s\s\s\sputs\s[::tcl::unsupported::representation\s$variable_name]\r\n}\r\n\r\ntest\r\n\r\nnamespace\seval\sA\s{\s\r\n\s\s\s\svariable\svar_A\sdata\r\n\s\s\s\sputs\s[::tcl::unsupported::representation\s$var_A]\r\n\s\s\s\s\r\n}
J foundin 8.6
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 1c4b6cdb98c9dfc4d1e74018f3f4efa00ad217e2
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 10.\sObjects
J title It's\snot\spossible\sto\smanipulate\scomplex\sdata\sstructures\sinside\sprocs
J type Bug
K 5edbc4a9f40bd2cfce24e291fc57dea51b7f1a50
U anonymous
Z 9c765879a11a7086147b39e6871e125e