Tcl Source Code

View Ticket
Login
Ticket UUID: 1669392
Title: TIP 280 difference
Type: Bug Created on: 2007-02-26 19:35:46
Submitter: dgp Assigned to: andreas_kupries
Subsystem: 45. Parsing and Eval Severity:
Priority: 5 Medium Last modified: 2007-09-18 09:11:38
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.5a6
Description:
As discussed on TCLCORE, the
results of

  Tcl_Eval(Tcl_CreateInterp(), "info frame 0");

and

  Tcl_EvalObjv(Tcl_CreateInterp(), 3, objv 0);

where objv holds "info" "frame" "0" are not
in agreement.  This is at least surprising.
User Comments:
jenglish added on 2007-09-18 09:11:38:
Logged In: YES 
user_id=68433
Originator: NO

FWIW, that the two calls produce different results is not surprising to me at all; in fact I'd be surprised if they _did_ return the same thing.

Tcl_Eval() evaluates a script; Tcl_EvalObjv() does not.  Quoth TFM: "Tcl_EvalObjv executes a single pre-parsed command *instead of a script.*" (emphasis added).