Artifacts Associated With Ticket 884830ffffffffffffffffffffffffffffffffff
Ticket change [c2881fe00e] (rid 111501) by dkf on 2004-01-26 15:56:11:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Shouldn't the following be a syntax error: expr {false eqfalse} and also this: expr {1eqint(2)}It looks to me like the 'eq' (and 'ne' too) operator doesn't check that it is not immediately followed by another character that could form part of a continuous literal or function name. - foundin initialized to: "obsolete: 8.4.5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dkf"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "Expr Parser Permits Syntax Error"
- type initialized to: "Bug"
Ticket change [b12acb01c4] (rid 98106) by rmax on 2004-01-26 23:49:21:
- icomment:
Logged In: YES user_id=124643 Another question is how 1eq1 should be handled. Currently it is allowed, and exercised by the test suite. Although the respective tests (expr-7.14, and expr-8.14 .. expr-8.17) don't explicitely state that they are meant to test eq and ne without white space around the operator.
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment:
Ticket change [0edb6a1b35] (rid 94692) by dkf on 2004-01-27 18:06:30:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=79902 I think it is best for the expression parser to at least check that the letters 'eq' and 'ne' are not followed by an alphabetic character. Note for Tcl9: supporting '2eq2' as an expression is a really bad idea since it may interfere with application-defined functions. We should fix the lexer to be more conventional (which is probably what Jeff's original intention was, after all. I suspect '2eq2' was really an unintended side effect). Assigning to Jeff for his input, as he was the creator of the 'eq' and 'ne' operators in the first place.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [e15cbbd9b2] (rid 87430) by hobbs on 2004-02-14 05:25:12:
- assignee changed to: "dkf"
- icomment:
Logged In: YES user_id=72656 The support for things like 2eq2 was actually intentional and something I had to make work solely because 2==2 is supported, but prior to the changes for recognized unquoted booleans, there were no other possibilities of conflicts. 0eqfalse used to be a syntax error because it had to be at least 0eq"false", which is more clearly separated. Now that that is blurred with bare booleans, I suspect a check for !alpha is correct, although I don't agree that 2eq2 should become an error right now.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
Ticket change [dbb506c5fa] (rid 108007) by dkf on 2004-10-04 20:24:36:
- icomment:
Logged In: YES user_id=79902 We always should have done that in parsing because we allow user-defined function names (though thankfully very few people actually do this!) and have (officially) no reserved letter sequences there.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [65fedfba2d] (rid 102636) by dkf on 2004-10-04 20:58:01:
- closedate changed to: "2004-10-04T13:58:01"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Fixed in HEAD. Can't be bothered to backport; most people won't be hit by this fault.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"