Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 81f387dc05604d63988b72e83020ee6ef357359e
Ticket: 2881189fffffffffffffffffffffffffffffffff
Should Tcl_Main() exit if appInitProc returns TCL_ERROR?
User & Date: dgp on 2009-10-20 03:31:50
Changes

  1. icomment:
    
    I agree that it would be a more consistent behavior
    for Tcl_Main to exit() when the appInitProc returns
    TCL_ERROR.  However the existing behavior has
    been in place since release 7.5, since long before
    any of the current maintainers got started, and I
    have no clear idea how much code is written with
    that expectation.
    
    The way forward is to TIP this feature change in
    the early days of feature development once the
    window opens on the 8.7/9.0 feature chase.  Then
    the TIP discussion will have some change to chase
    down the pros/cons of the proposed change.
    
    As you observe, the appInitProc() writer has a
    workaround available to simply call exit() for
    itself if it has already determined that the error
    ought to be a fatal one.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"