Skip to content
Tcl Source Code Artifact [5ba2867ed4]
Login

Artifact [5ba2867ed4]

Artifact 5ba2867ed47fdb471a18fb5f5bae808061080e90:

Ticket change [5ba2867ed4] - Ticket [1202178fffffffff|1202178fff] <i>Change [time] to return a float for count&gt;1</i> status still Open with 4 other changes by das on 2005-05-19 19:47:59.
D 2005-05-19T19:47:59
J icomment Logged\sIn:\sYES\s\nuser_id=90580\n\nDonal,\sI'm\snot\ssure\sI\sunderstand\syour\sobjection.\nFor\scount==1,\smy\spoint\swas\sthat\sthe\sstring\srep\sof\sthe\slist\sthat\sthe\s\npatched\s[time]\sreturns\sis\sexactly\sthe\ssame\sas\sthe\sstringObj\scurrently\s\nreturned\s(constructed\svia\ssprintf).\nAs\slong\sas\snobody\schecks\sthe\sTcl_ObjType\sof\sthe\sreturn\svalue\s(which\s\nthey\sshouldn't),\sthere\sis\sno\sway\sto\sdistingush\sbetween\sthis\slist\sand\sthe\s\ncurrently\sreturned\sstring,\sAFAICT\n\nI\shave\scertainly\stested\stclbench\sagainst\sthis,\sthe\spatch\swas\sindeed\s\nprimarily\smotivated\sby\sthe\sdesire\sto\sget\smore\sstable\sresults\sfrom\stclbench\s\nfor\stests\swith\ssmall\s[time]\sresults.\sEverything\sworks\sunchanged\sexcept\s\nthat\sall\stiming\sresults\sare\snow\sfloats\n\nDon,\sthe\smotivation\sof\susing\san\sIntObj\sfor\sthe\scount==1\scase\swas\sto\s\npreserve\sthe\scurrent\sreturn\sstring\sformat\sexactly\swhen\sit\sis\snot\snecessary\s\nto\schange\sit\s(since\sthe\smeasured\stime\scan\snever\sbe\sa\sfloat\sfor\s\ncount==1).\sI\sam\scertainly\shappy\sto\salways\smake\sit\sa\sfloat,\sthis\sidea\smay\s\nindeed\sbe\strying\sto\sbe\sto\ssmart\sfor\sits\sown\sgood...\n\nOTOH,\sI\sdon't\sunderstand\swhy\syou\ssay\sthe\spatch\sreturns\sinformation\s\nembodied\sin\sthe\sTcl_ObjType,\severything\swould\swork\sjust\sthe\ssame\sif\sI\s\nreturned\sjust\sthe\sstring\srep\sof\sthe\slist\sI\sconstruct\sas\sa\sStrinObj...\s(except\s\nthat\sthere\scould\sbe\struncation\sdue\sto\s$tcl_precision)\n\nIn\sany\scase,\sI'd\seven\sbe\sok\sto\sretain\sthe\scurrent\ssprintf\sway\sof\s\nconstructing\sthe\sresult\sas\slong\sas\swe\sswitch\sthe\s%f.0\sin\sthe\sformat\sstring\s\nto\ssomething\swith\smore\sdecimals.\n\n
J login das
J mimetype text/plain
J username das
K 1202178fffffffffffffffffffffffffffffffff
U das
Z 17f9cfe7ccab461cd00aadfbd4fb38c8