Skip to content
Tcl Source Code History Of Ticket 218085
Login

History Of Ticket 218085

Artifacts Associated With Ticket 218085

  1. Ticket change [f6be1728fd] (rid 130350) by nobody on 2000-10-26 00:53:00:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.0.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to:
      Tcl_VarEval returns successfully, set interp->errorLine to 1
      
    11. type initialized to: "Bug"
  2. Ticket change [6c1882ded1] (rid 128441) by welch on 2000-10-26 08:14:46:

    1. closedate changed to: "2000-10-26T01:14:46"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [80316ee375] (rid 97691) by dgp on 2001-04-16 23:38:03:

    1. closedate changed to: "2001-04-16T16:38:03"
    2. closer changed to: "dgp"
    3. subsystem changed to: "45. Parsing and Eval"