Skip to content
Tcl Source Code Artifact [4737be2922]
Login

Artifact [4737be2922]

Artifact 4737be2922b6ff87018183ec2e4fda2fbc031fa8:

Ticket change [4737be2922] - Ticket [3304643fffffffff|3304643fff] <i>User object info lost on more aggressive numeric conversion</i> status still Open with 4 other changes by cjmcdonald on 2011-05-19 22:40:26.
D 2011-05-19T22:40:26
J icomment Or\salways\suse\sthe\s"eq"\soperator\sto\sdo\sstring\scomparisons\son\syour\sobjects,\sinstead\nof\s"==".\n\nFor\sbetter\sor\sworse\sI\suse\sa\ssimilar\sscheme,\sstoring\sa\spointer\sto\sa\sC++\sobject\sin\nthe\sTcl\sobject\sinternalRep.\s\sThe\sonly\sdifference\sis\sthat\smy\sobject\sstring\sreps\nnever\slook\slike\sa\snumeric\svalue,\sbut\sI\sdon't\sthink\sthat\swill\sbe\san\sissue\sanyway\sif\nyou\suse\s"eq".\s\sI\shaven't\shad\smany\sproblems\swith\sTcl\s8.5,\sand\sthe\sscheme\shas\nproved\sreliable.\s\sThe\sonly\sissues\shave\sbeen:\n\nLosing\sinternal\srep\sconverting\sbetween\sa\slist\sand\sa\sdict,\swhich\salso\saffected\narray\sget/set.\s\sThis\shave\sbeen\sfixed\sin\slater\s8.5.x\sreleases.\n\nOverly\saggressive\sconversions\susing\s%s\sin\s[format],\swhich\sunfortunately\nalso\saffects\sparray,\sso\sthat\slisting\sthe\scontents\sof\san\sarray\sloses\sany\ninternal\sreps.\s\sI\sthink\sthat\sthis\shas\sbeen\sfixed\sin\sthe\sTcl\s8.6\shead.\n\nOtherwise\sall\sOK,\salthough\sit\swill\snever\sbe\san\sofficially\sapproved\sor\ssupported\nmethod,\sas\susing\sthe\sinternalRep\sin\sthat\sway\sbreaks\sthe\sTcl\s"Everything\nis\sa\sstring"\scontract.\s\sThese\sobject\srepresentations\sconsist\sof\sa\sstring\sAND\nsome\shidden\sstate\s(the\sC++\sobject),\swhich\scannot\sbe\sinferred\sjust\sfrom\sthe\sstring.\n
J login cjmcdonald
J mimetype text/plain
J username cjmcdonald
K 3304643fffffffffffffffffffffffffffffffff
U cjmcdonald
Z d7d4590d19267fbf54e24f69038d6603