Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 92ce00a751b73c4104bc2024a0f07d9544818c92
Ticket: 1066837fffffffffffffffffffffffffffffffff
Tcl_WrongNumArgs() incompatibility
User & Date: dgp on 2004-11-16 23:32:40
Changes

  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"