Skip to content
Tcl Source Code Artifact [c70816c67f]
Login

Artifact [c70816c67f]

Artifact c70816c67fe76cf766041d1faa5e1e0a5f07d2a7:

Ticket change [c70816c67f] - Ticket [3304643fffffffff|3304643fff] <i>User object info lost on more aggressive numeric conversion</i> status still Open with 4 other changes by dgp on 2011-06-30 03:20:07.
D 2011-06-30T03:20:07
J icomment \nMy\sinclination\sis\sto\ssay\syou\sare\sasking\sTcl\sto\ndo\snon-Tcl\sthings.\s\s\sBut\sperhaps\swith\sa\smore\ndetailed\sexample\sI\smight\sfind\ssome\smiddle\nground\sof\saccommodation.\s\sWhat's\san\sexample\nexpression\sthat\sillustrates\sthe\sproblem?\s\s\n\nMore\sexamples\sand\sless\sdescription\sgenerally\nwould\sbe\sa\sbetter\sway\sfor\smore\speople\sto\sunderstand\nthe\sdetails\sof\syour\stroubles\sand\seither\sfind\sa\sTcl\schange\nto\smake\syou\shappy,\sor\ssuggest\schanges\sto\syour\scode\nwith\sthe\smaximum\spracitcality.\n\nWhen\syou\screate\syour\sown\sTcl_ObjTypes,\spart\sof\nthe\scontract\swith\sTcl\sis\sthat\sit\scan\s"re-type"\svalues\nas\sit\ssees\sfit.\s\sIt\swill\snot\schange\sthe\svalue\s(assuming\nproper\scopy\son\swrite\sby\severyone),\sbut\sit\smight\nchange\sthe\stype.\s\sThe\srobust\ssupported\sway\sto\ndeal\swith\sthat\sis\sfor\syour\sTcl_ObjType\sto\ssupply\sa\nTcl_SetFromAnyProc()\sthat\scan\stake\sany\sTcl\sstring\nvalue\sand\sgenerate\sthe\scorresponding\sinternal\nrep\syour\sTcl_ObjType\suses.\s\sThat\simplies\seither\nencoding\sinto\sthe\sstring\srep\sall\sthat\sneeded\sto\nreconstruct\syour\sintrep,\sor\susing\ssome\skind\sof\nhandle\sscheme\swith\san\sauxilliary\slookup\s(for\nexample\sa\shash\stable).\n\nThat\ssaid,\speople\shave\smade\sother\sless\srobust\nschemes\swork,\sso\splease\sgive\sa\sfew\sexamples\nso\sI\scan\stake\sa\slook\sat\sthe\sdetails\sto\ssee\swhat\nsolutions\smight\sbe\sfeasible.\n
J login dgp
J mimetype text/plain
J username dgp
K 3304643fffffffffffffffffffffffffffffffff
U dgp
Z f65d1227ac913cf1269341d33bd9b62f