Skip to content
Tcl Source Code Artifact [bdf44a5405]
Login

Artifact [bdf44a5405]

Artifact bdf44a5405ba4d664db7cf6491e1512af9effdba3c244c25c0f3dc9b55fa4c89:

Ticket change [bdf44a5405] - Ticket [b204c13b2b2335a6|b204c13b2b] <i>Incompatibility between 8.6 and 8.7 with underscores in numerics</i> status still Open with 3 other changes by griffin on 2023-08-27 23:18:07.
D 2023-08-27T23:18:07.042
J icomment Thanks\sfor\sthe\sdeep\sanalysis\sJulian!\r\n\r\nJust\sa\scouple\scomments\sfor\snow:\r\n\r\n==\svs\seq\r\n\r\nThe\s"guessing"\sbehavior\sof\s==\shas\sbeen\sproblematic\sin\svery\ssubtle\sways.\sSolidifying\snumeric\svs\sstring\sbehavior\sdistinction\sis\sa\swin\sin\sthe\slong\srun,\seven\sif\sit\sintroduces\san\sincompatibility,\sIMO.\s(As\sfor\s8.7\svs\s9.0:\s8.7\sis\scontroversially\sdefined\sas\sa\stransition\srelease,\sso\scompatibility\srules\sare\sintentionally\signored\sto\ssome\sextent.\sInterpret\sthat\sas\syou\ssee\sfit.)\r\n\r\nThe\suse\sof\sunderscore\sbefore\sor\safter\sthe\sdecimal\spoint\sis\sa\smistake\sand\sshould\sbe\sdisallowed.\sThis\sis\sa\sbug\sand\sshould\sbe\sfixed.\sTIP\s#551\swas\sinspired\sby\sVHDL,\swhich\sderives\sfrom\sADA\swhich\sdefines\snumeric\sliterals\sas:\r\n\r\n```\r\n\r\nnumeric_literal\s::=\sdecimal_literal\s|\sbased_literal\r\n\r\ndecimal_literal\s::=\sinteger\s[.integer]\s[exponent]\r\n\r\ninteger\s\s::=\sdigit\s{[underline]\sdigit}\r\n\r\nexponent\s::=\sE\s[+]\sinteger\s|\sE\s-\sinteger\r\n\r\n```\r\n"based_literal"\sis\ssimilar\sfor\sbinary,\soctal,\sand\shex\sbases.\r\n\r\nThe\scurrent\sTcl\simplementation\sallows\sthe\sunderscore\sadjacent\sto\sthe\sdecimal\spoint;\sADA\sdoes\snot.
J login griffin
J mimetype text/x-markdown
K b204c13b2b2335a6baf8fa1a3c6a627432380012
U griffin
Z 0c1d353b73d48d4c1d423454e1a2d037