Skip to content
Tcl Source Code History Of Ticket 1066837
Login

History Of Ticket 1066837

Artifacts Associated With Ticket 1066837

  1. Ticket change [ea5fc08e4b] (rid 103368) by dgp on 2004-11-15 18:05:03:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Tcl_WrongNumArgs() was
      recently changed on the HEAD
      to treat objv elements as list
      elements when constructing
      error messages (quite arguably,
      as it always should have been).
      
      This is incompatible with prior
      behavior that constructed error
      messages with simple string
      concatenation.
      
      The result is that the error message
      construction for Itcl ensembles is
      now broken, and 8 tests in the Itcl
      test suite fail.
      
      Compatibility should  be restored
      before Tcl 8.5a2 release.  Perhaps
      a Tcl_WrongNumArgsEx() is the
      acceptable way to introduce a
      properly working routine?
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "13. Index Object"
    10. title initialized to: "Tcl_WrongNumArgs() incompatibility"
    11. type initialized to: "Bug"
  2. Ticket change [f7462fdf5c] (rid 91346) by dkf on 2004-11-16 16:51:25:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      I don't understand the failure mode yet, since as far as I
      can see Itcl ensembles don't touch Tcl_WrongNumArgs at all.
      Please provide more information.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [92ce00a751] (rid 120838) by dgp on 2004-11-16 23:32:40:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      ok, one failing test in Itcl's test suite is:
      
      ==== info-4.1a query class (wrong # args) FAILED
      ==== Contents of test case:
      
          list [catch {ti info class x} result] $result
      
      ---- Result was:
      1 {wrong # args: should be "{info class}"}
      ---- Result should have been (exact matching):
      1 {wrong # args: should be "info class"}
      ==== info-4.1a FAILED
      
      Within the Itcl_BiInfoClassCmd() routine,
      the error message is constructed with
      a call to Tcl_WrongNumArgs():
      
        if (objc != 1) {
          Tcl_WrongNumArgs(interp, 1, objv, NULL);
           return TCL_ERROR;
        }
      
      At this point, objc==2 and the contents of objv are:
      
        objv[0] = "info class"
        objv[1] = "x"
      
      The piling of all the leading words into
      objv[0] is a "feature" of Itcl's ensemble
      mechanism.
      
      Since T_WNA was changed to quote
      that leading objv[0] as a single list 
      element, the error message is now
      incorrect.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [a5705e549e] (rid 110381) by dkf on 2004-11-17 05:22:34:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Hmm, examining what Itcl does, I see that the workaround is
      to *not* listify the first object. Clunky... :^/
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [fb29a602e5] (rid 92005) by dkf on 2004-11-17 06:21:51:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Clashes with bug 942757 (see test proc-3.6)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [0441d62526] (rid 119965) by dkf on 2004-11-25 23:38:40:

    1. closedate changed to: "2004-11-25T16:38:40"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Fixed and placed #ifdef-ery in so that the fix looks ugly;
      it's supposed to look ugly, since what it is doing sure
      isn't pretty!
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"