Artifacts Associated With Ticket 218085
Ticket change [f6be1728fd] (rid 130350) by nobody on 2000-10-26 00:53:00:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "obsolete: 8.0.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to:
Tcl_VarEval returns successfully, set interp->errorLine to 1
- type initialized to: "Bug"
Ticket change [6c1882ded1] (rid 128441) by welch on 2000-10-26 08:14:46:
- closedate changed to: "2000-10-26T01:14:46"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [80316ee375] (rid 97691) by dgp on 2001-04-16 23:38:03:
- closedate changed to: "2001-04-16T16:38:03"
- closer changed to: "dgp"
- subsystem changed to: "45. Parsing and Eval"