Skip to content
Tcl Source Code History Of Ticket 884830ffffffffff
Login

History Of Ticket 884830ffffffffff

Artifacts Associated With Ticket 884830ffffffffff

  1. Ticket change [c2881fe00e] (rid 111501) by dkf on 2004-01-26 15:56:11:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
    4. foundin initialized to: "obsolete: 8.4.5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dkf"
    9. subsystem initialized to: "45. Parsing and Eval"
    10. title initialized to: "Expr Parser Permits Syntax Error"
    11. type initialized to: "Bug"
  2. Ticket change [b12acb01c4] (rid 98106) by rmax on 2004-01-26 23:49:21:

    1. 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.
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  3. Ticket change [0edb6a1b35] (rid 94692) by dkf on 2004-01-27 18:06:30:

    1. assignee changed to: "hobbs"
    2. 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.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  4. Ticket change [e15cbbd9b2] (rid 87430) by hobbs on 2004-02-14 05:25:12:

    1. assignee changed to: "dkf"
    2. 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.
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. username: "hobbs"
  5. Ticket change [dbb506c5fa] (rid 108007) by dkf on 2004-10-04 20:24:36:

    1. 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.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [65fedfba2d] (rid 102636) by dkf on 2004-10-04 20:58:01:

    1. closedate changed to: "2004-10-04T13:58:01"
    2. closer changed to: "dkf"
    3. 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.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"