Skip to content
Tcl Source Code Artifact [e20b453e5e]
Login

Artifact [e20b453e5e]

Artifact e20b453e5e697c9d72a8e92aede424b4290ab391:

Ticket change [e20b453e5e] - New ticket [1027849fffffffff|1027849fff] <i>Slight clarification on expr man page would be helpful</i>. by lvirden on 2004-09-14 11:46:20.
D 2004-09-14T11:46:20
J assignee dkf
J cmimetype text/plain
J comment Currently,\sthe\sexpr(n)\sman\spage\sleaves\sreaders\sa\sbit\nconfused\sconcerning\sthe\sspecial\slimitation\son\soperands\nthat\sexpr\srequires.\n\nIn\sthe\srest\sof\sTcl,\sa\ssingle\sword\sstring\svalue\sneed\snot\nbe\squoted.\nHowever,\sin\sexpr\s,\sthis\sstring\sformat\smust\sbe\squoted.\s\nThis\sis\sspecifically\sdocumented\sin\sexpr(n)\sin\soperand\nformats\s3\sand\s4.\n\nHOWEVER,\searlier\sin\sthe\sman\spage,\sthe\sdoc\sgoes\sthrough\nthe\sinterpretation\sof\sthe\soperands\sand\sstates\sthat\sif\nthe\soperand\smatches\sany\sof\sthe\sinteger\sformats,\sit\swill\nbe\streated\sas\san\sinteger,\sthen\sif\sit\smatches\sany\sof\sthe\nfloating\snumber\sformats,\sit\swill\sbe\streated\sas\sa\nfloating\snumber.\s\sThe\sman\spage\sthen\sstates\s"[i]f\sno\nnumeric\sinterpretation\sis\spossible,\sthen\san\soperand\sis\nleft\sas\sa\sstring\s[...]".\s\sIt\sseems\sto\sme\sthat\sthe\sman\npage,\sat\sthis\spoint,\sshould\ssay:\n\nIf\sno\snumeric\sinterpretation\sis\spossible,\sand\sthe\noperand\sis\senclosed\sin\seither\sdouble\squotes\sor\sbraces,\nthen\sthe\soperand\sis\sleft\sas\sa\sstring\s[...].\nIf\snone\sof\sthese\scases\sare\strue,\sexpr\swill\streat\sthe\nexpression\sas\sa\ssyntax\s\serror.\n\nThis\swould\sclarify\sto\sthe\sreader\sthe\scase\sthey\smay\smiss\nconcerning\sthe\serror.
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter lvirden
J subsystem 
J title Slight\sclarification\son\sexpr\sman\spage\swould\sbe\shelpful
J type Bug
K 1027849fffffffffffffffffffffffffffffffff
U lvirden
Z dde7b824f8b588894ce2908f67572c03