Skip to content
Tcl Source Code Artifact [f77e0fdcd8]
Login

Artifact [f77e0fdcd8]

Artifact f77e0fdcd81551b6fc79890fe7f069f4edd98509791eb1e97773bf8208599304:

Ticket change [f77e0fdcd8] - Ticket [cd61f085da52b338|cd61f085da] <i>tcl terminates silently with invalid expr underscore syntax and radix prefix</i> status still Open with 3 other changes by juliannoble2 on 2023-08-29 17:47:55.
D 2023-08-29T17:47:55.758
J icomment Just\sas\sa\sfurther\sreason\swhy\sI\sthink\sthe\srules\sfor\sunderscores\sneed\sto\sbe\svery\ssimple\sand\sunderstandable\sand\swhy\sthe\sunderscores\sshouldn't\sbe\sallowed\sadjacent\sto\se|E:\r\n\r\n\r\n#1\r\n%\sset\sx\s1.e_2\r\n1.e_2\r\n%\sexpr\s{$x\s<\s100}\r\n0\r\n\r\n#2\r\n%\sset\sx\s1.e_+2\r\n1.e_+2\r\n%\sexpr\s{$x\s<\s100}\r\n1\r\n\r\n\r\n#2\sgets\sus\sright\sback\sto\saccidental\sstring\scomparison\s(though\sthis\sexample\sis\sjust\san\sartifact\sof\sthe\scurrent\sstate\sof\sthe\sfix)\r\n\r\nif\syou\sallow\s1.0_e2\s\sbut\sthen\sdisallow\s1._e2\s\sto\sbe\sconsistent\swith\sdisallowing\s1._1\s&\s1_.1\sthen\sthis\salso\srisks\saccidental\sstring\scomparison\sfor\sthose\sassuming\s'before\se|E\sis\salways\sok'.\r\n\r\nIf\sthe\scurrent\sfix\sallowing\s1._1\sis\sintentional\s-\sthen\sthe\srisk\sis\smisinterpretation\sof\sthe\srules\sto\sthink\s1_._1\sand/or\s1_.1\sare\sok\s-\sas\swell\sas\sthe\spreviously\smentioned\ssurprise\sfor\sthose\ssplitting\son\sthe\sdot\sand\sgetting\sa\sstring\sin\spart\sb\seven\safter\shaving\salready\sfiltered\sout\ssci\snotation.\r\n\r\nBy\sdisallowing\sanywhere\sbut\sin\sbetween\sdigits\sand\sperhaps\safter\sradix\sspec\s-\sit\swould\sseem\sto\salleviate\sthis\srisk.
J login juliannoble2
J mimetype text/plain
K cd61f085da52b3384388c8ef780f53d8c55ead4f
U juliannoble2
Z 0ebbb56ab923f3ab616227bcf109a198