Tcl Source Code

Artifact [de53f70091]
Login

Artifact de53f700917d20876acdf2df0fa7ff138ba251d4:

Ticket change [de53f70091] - Closed ticket [5edbc4a9f4]: It's not possible to manipulate complex data structures inside procs plus 6 other changes by sebres 2015-09-04 08:24:08.
D 2015-09-04T08:24:08.524
J closedate 2457269.85009866
J closer sebres
J icomment >\sit's\snot\spossible\sto\smake\smanipulations\sin\splace\r\nWhat\sdid\syou\smean\shere\sunder\smanipulations?\r\n\r\nThat\sis\sexpected\sin\stcl,\sthat\ssome\s"static"\scode\sobjects\shas\sa\srefCount\sgreater\sas\s1,\sdespite\syou\ssee\sthis\sobject\sonly\sonce,\sbecause\sof\sinterp/namespace\sliterals,\scode\scompiling\setc.\s\r\nGuaranteed\srefCount\s=\s1\syou're\sgoing\sto\sget,\sif\sit\swill\sbe\screated\sand\sreturned\sto\sinterpreter\sinside\sany\scommand,\sand\swill\sbe\sused\snowhere\sotherwise.\s\r\n\r\nExample:\r\nproc\stest\s{}\s{\r\n\s\s\s\sputs\s[::tcl::unsupported::representation\s[linsert\s{}\send\s1\s2\s3]]\r\n\s\s\s\sputs\s[::tcl::unsupported::representation\s[string\stolower\sDATA]]\r\n}\r\n\r\nFurthermore\syou\scan\salways\screate\sa\sduplicate\swith\srefCount\s=\s1,\susing\sfunction\sTcl_DuplicateObj.\r\n\r\nManipulation\sof\sobject\swith\srefCount\s>\s1\sis\sallowed\salso,\sfor\sexample\schange\sto\syour\sown\sTcl_ObjType\s(internal\srepresentation),\sbut\sonly\sif\sit\sstring\srepresentation\swill\sbe\snot\schanged\sor\scan\sbe\salways\sregenerated\sto\sthe\ssame\swithin\syour\sown\sTcl_ObjType.\r\n\r\nAn\sexample\sfor\ssuch\s"complex\sdata\sstructures"\sare\sobjects\scontains\sfile/channel/database\s"handles"\setc.\r\n\r\nSo\slong\sit's\snot\sclear\sas\sa\sbug,\sI\swill\sclose\sthis\sissue\sas\sinvalid.\sPlease\sprovide\smore\sinfo\sif\sexpected.
J login sebres
J mimetype text/plain
J resolution Invalid
J status Closed
K 5edbc4a9f40bd2cfce24e291fc57dea51b7f1a50
U sebres
Z 7f04006de12001be59fab23551634383