Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f42c397fd47e8d71eabbab155cbcf0023a832859d798a526bf7be51d4e3ab5a3
Ticket: 2c519736077ac092dbbce446759063f5f8427084
Having Tcl_WrongNumArgs return TCL_ERROR makes extension writing a little nicer
User & Date: stu on 2018-07-04 11:50:45
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    In Tcl extensions, a call to Tcl_WrongNumArgs is almost invariably followed by return TCL_ERROR.<br>
    If Tcl_WrongNumArgs, which currently has a void return, were to instead return TCL_ERROR then extension writing would be a little bit nicer.
    
    Currently:
    <pre>
    if (objc != 1) {
      Tcl_WrongNumArgs(interp, 1, objv, NULL);
      return TCL_ERROR;
    }
    </pre>
    
    Nicer:
    <pre>
    if (objc != 1) {
      return Tcl_WrongNumArgs(interp, 1, objv, NULL);
    }
    </pre>
    
  5. foundin changed to: "current"
  6. is_private changed to: "0"
  7. login: "stu"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "36034badbf4fa68e1e6f55bc81729916152660a8"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "stu"
  14. subsystem changed to: "69. Other"
  15. title changed to:
    Having Tcl_WrongNumArgs return TCL_ERROR makes extension writing a little nicer
    
  16. type changed to: "RFE"