Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fa9fedb958fe96debf8dc8e4bed5cd76f939f588
Ticket: 1041949fffffffffffffffffffffffffffffffff
Standardize, for errors, how Tcl sets the interp's result.
User & Date: nobody on 2007-11-18 05:07:23
Changes

  1. icomment:
    Logged In: NO 
    
    Two suggestions: the name "Tcl_SetResultReturnError" says "how", not "what" -- I'd suggest renaming this to Tcl_ReportError().  Lightning bolt vs. lightning bug and all that.
    
    It may be worth considering adding an optional second parameter, that would be used to set $::errorCode if non-NULL.  That would encourage more callers to actually set this.
    
    int Tcl_ReportError(Tcl_Interp *interp, const char *errorCode, ...);
    
    
    
    
  2. login: "[email protected]"
  3. mimetype: "text/plain"
  4. username: "[email protected]"