Skip to content
Tcl Source Code View Ticket
Login

View Ticket

'error' command isn't called for syntax error (Tcl_Main)

Closed / Invalid1957356fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 18 years ago
Descriptionplain2008-05-04 18:10:13
I have Tcl_Main-based application.
Script has some syntax error that causes TCL to exit.
I redefined 'exit' command (with Tcl_CreateObjCommand) expecting that it will be called. But it's not being called at all.

Tcl_Main(3) says:
<skip>
In non-interactive  mode,  after  Tcl_Main evaluates  the  startup  script,  and  the main loop procedure (if any) returns, Tcl_Main will also evaluate the exit command.
dgp Ticket [1957356fff]: 2 changes [History diff]2008-05-05 14:46:43
dgpplain2008-05-22 22:34:00
Logged In: YES 
user_id=80530
Originator: NO


Can you more concretely demonstrate
the problem?  Looking at the source
code for Tcl_Main() I can't see any
way for what you report to be true.
sf-robotplain2008-06-06 09:20:39
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.