Overview
| Artifact ID: | f6be1728fd9b0a88e1ec4c94483555b77d37fd98 |
|---|---|
| Ticket: | 218085ffffffffffffffffffffffffffffffffff
Tcl_VarEval returns successfully, set interp->errorLine to 1 |
| User & Date: | nobody on 2000-10-26 00:53:00 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 1718 Bug Version: 8.0.4 SubmitDate: '1999-04-05' LastModified: '1999-12-03' Severity: LOW Status: Closed Submitter: pat ChangedBy: hobbs OS: Solaris OSVersion: 4.5.3 FixedDate: '2000-10-25' FixedInVersion: NA ClosedDate: '1999-12-03' Name: Scott Sussman ReproducibleScript: interp->errorLine = 0; result = Tcl_VarEval(interp, "return \"", event->func->arglist->value.strv, "\"", 0); if (interp->errorLine) result = TCL_ERROR; using the above code result gets set to 2 (event->func->arglist->value.strv is a string i.e. "ENET_HDR", so the entire string sent to tcl_VarEval is 'return \"ENET_HDR\"') which is correct (TCL_RETURN) yet the interp->errorLine get set to 1 and the following if forces the value of result to TCL_ERROR. the fix for us was to use the Tcl_VarEval return value to check for pass or fail rather than interp->errorLine. Is this a known problem? Thanks, Scott Sussman Walts Develpment Group Leader Bay Networks The return value is the documented way to determine an error, and the other is strongly discouraged (not guaranteed to be upwards compatible). -- 12/03/1999 hobbs - foundin changed to: "obsolete: 8.0.4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
Tcl_VarEval returns successfully, set interp->errorLine to 1
- type changed to: "Bug"