Skip to content
Tcl Source Code Artifact [214dd51f1a]
Login

Artifact [214dd51f1a]

Artifact 214dd51f1a6c57f075998574c443651679694bc0:

Ticket change [214dd51f1a] - Ticket [1230346fffffffff|1230346fff] <i>Another [string is integer] inconsistency</i> status still Open with 4 other changes by dgp on 2005-06-30 23:29:59.
D 2005-06-30T23:29:59
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nActually,\syes\syou\sdo\scare.\n\nSome\scommands\saccept\sonly\nthose\sarguments\sthat\spass\nTcl_GetIntFromObj.\s\s\n\nFor\sexample,\n\n\s\s[lindex\s$list\s$index]\n\nForgetting\sfor\sa\smoment\sthe\sspecial\nforms\s"end-",\setc.\sfor\sindices,\sif\s$index\nis\sa\sstring\sof\sdigits,\sthen\syou\sneed\sthen\nto\sbe\sdigits\sthat\spass\s[string\sis\sinteger\s$index].\n\n%\sstring\sis\sinteger\s9999999999\n0\n%\slindex\sc\s9999999999\nbad\sindex\s"9999999999":\smust\sbe\sinteger?[+-]integer?\sor\nend?[+-]integer?\n\nSo,\syou\sneed\sto\schoose\sthe\nvalidation\scommand\sthat\smatches\syour\nintended\suse.\s\sIt\smight\sbe\n[string\sis\swideinteger].\s\sIt\smight\sbe\syour\nregexp.\s\sAll\sdepends\son\swhat\syour\neventual\suse\swill\saccept/reject.\s\sChoose\nthe\smatching\svalidator.\n
J login dgp
J mimetype text/plain
J username dgp
K 1230346fffffffffffffffffffffffffffffffff
U dgp
Z c76ba41bc2525eb36c2d761c4bb6e971