Skip to content
Tcl Source Code History Of Ticket 2881189fffffffff
Login

History Of Ticket 2881189fffffffff

Artifacts Associated With Ticket 2881189fffffffff

  1. Ticket change [d1c35809a3] (rid 113411) by teopetuk on 2009-10-18 07:07:17:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hi!
      
      It is documented in Tcl_AppInit(3) that appInitProc() may return TCL_ERROR along with an error message. Tcl_Main() prints out the error message and continues working. Wouldn't it be better if Tcl_Main() exited in case of appInitProc() returned TCL_ERROR? Or may be it should be documented that if application initialization failure is fatal then appInitProc() should call exit()? Or may be something else?
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "teopetuk"
    10. subsystem initialized to: "None"
    11. title initialized to:
      Should Tcl_Main() exit if appInitProc returns TCL_ERROR?
      
    12. type initialized to: "RFE"
  2. Ticket change [1dfa7a8239] (rid 90900) by dgp on 2009-10-20 03:27:49:

    1. assignee changed to: "dgp"
    2. icomment:
      
      
      data_type - 360894
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. subsystem changed to: "50. Embedding Support"
    6. username: "dgp"
  3. Ticket change [81f387dc05] (rid 117131) by dgp on 2009-10-20 03:31:50:

    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"