Skip to content
Tcl Source Code Artifact [376dc94f84]
Login

Artifact [376dc94f84]

Artifact 376dc94f84239438fcfe1be44ebfd085a1d83000:

Ticket change [376dc94f84] - Closed ticket [862526872cda0746|862526872c]: <i>Getting another object of the same type in dict and list for performance</i> plus 6 other changes by ferrieux on 2015-04-20 20:32:19.
D 2015-04-20T20:32:19.415
J closedate 2457133.35578027
J closer ferrieux
J icomment There\sis\sno\ssuch\sthing\sas\sa\s"force\sto\sstring"\sby\seither\slist\sor\sdict\scontainers;\sthey\sdo\srespect\swhatever\scurrent\srepresentation\stheir\scontents\shave.\r\n\r\nIn\sthe\sexamples\sgiven,\sconstant\s*strings*\slike\s{1\s1\s2332\s{12\s12}\s}\sare\spassed\sin\sand\sgotten\sout.\sMake\sthem\sshimmer\sbefore\sencapsulation,\sthey'll\skeep\stheir\sstate:\r\n\r\n\sset\sx\s{1\s2\s3\s4}\r\n\slindex\s$x\s0\r\n\sset\sa\s[list\s$x\s$x\s$x]\r\n\sset\sb\s[lindex\s$a\s2]\r\n\sputs\s"b\sinner\srepresentation:\s\\n\\t[::tcl::unsupported::representation\s$b]\\n"\r\n\r\n=>\s\r\n\sb\sinner\srepresentation:\s\r\n\s\s\s\s\s\s\s\svalue\sis\sa\slist\swith\sa\srefcount\sof\s8,\sobject\spointer\sat\s0x8daa208,\sinternal\srepresentation\s0x8df8db8:(nil),\sstring\srepresentation\s"1\s2\s3\s4"
J login ferrieux
J mimetype text/plain
J resolution Invalid
J status Closed
K 862526872cda074626d8a1e020479acf44ed7009
U ferrieux
Z 5e7825e8521fd97e4470bb058b274b9c