.
D 2005-09-27T21:56:35
J assignee msofer
J cmimetype text/plain
J comment The\sfunction\sTcl_ParseExpr\sdoes\smore\sthan\sdo\slexical\nand\ssyntactic\s(parsing)\sanalysis.\s\sIt\salso\sdoes\ssome\nsemantic\sanalysis,\sto\sprovide\smeaning\sto\ssome\slexemes,\nwhich\sleads\sto\sit\sdetecting\sfaults\sin\splausibly\swell\nformed\sexpressions.\n\nThus,\sparsing\s1+0x100000000000000000\s(say)\swill\sfail,\nsince\ssemantic\sanalysis\sdetermines\sthat\sthe\sunderlying\nvalue\sthis\srepresents\sis\sbigger\sthan\san\sunderlying\n"int"\sdata\stype.\n\nThe\sman\spage\sis\ssilent\son\sthis\smatter,\sunless\syou\scount\nthe\sphrase\s"...parses\sTcl\sexpressions...",\sand\sconsider\na\sTcl\sexpression\sto\sbe\smalformed\s\sif\sthe\sliteral\nnumbers\sdon't\sfit\sin\san\s"int".\n\nThis\sbehaviour\sof\sTcl_ParseExpr\smakes\sit\ndifficult/impossible\sto\suse\sTcl_ParseExpr\sto\scrack\sopen\nexpressions\sthat\suse\sthe\sdomain\sof\smulti-precision\narithmetic.\s\sPerhaps\sTcl\s8.5a?,with\sthe\sintroduction\sof\nmp\sartithmetic,\swill\sclear\sup\ssome\sof\sthis?
J foundin obsolete:\s8.4.11
J priority 5\sMedium
J resolution None
J status Open
J submitter rrh
J subsystem 45.\sParsing\sand\sEval
J title Tcl_ParseExpr\smisdocumented\sand/or\smisnamed
J type Bug
K 1306288fffffffffffffffffffffffffffffffff
U rrh
Z 81f171afcfa18cd43cb260ea3b54e21d