Re: TCL_evalFile



Puneet Maheshwari wrote:
On Jun 29, 2:24 pm, Bruce Hartweg <doNOT...@xxxxxxxxxxx> wrote:
Puneet Maheshwari wrote:
Can anyone explain in detail what is the use of the functions like
TCL_evalFile. I understand that this evaluates the content of the file
as tcl script. But I do not exactly understand what kind of file is
converted to what and where does it return the changed file etc.
There is no "converting" or changing of the file, it just evaluates it.
the file in question should be a valid Tcl script.

Bruce

But how exactly does it evaluate? Do you know any nice tutorial for
that?


I'm not sure I understand - it evaluates it by the basic rules of the Tcl language.

the script equivalent would be

source filename

it runs the file throught he Tcl interpreter and that evaluates the commands in the script.

Bruce
.



Relevant Pages

  • Re: TCL_evalFile
    ... Puneet Maheshwari wrote: ... converted to what and where does it return the changed file etc. ... the file in question should be a valid Tcl script. ...
    (comp.lang.tcl)
  • tclblend and vwait problem
    ... I have a Java application that starts fine with tclblend. ... some commands take a ... while to complete and I would like my tcl script to basically stop ... set untilDone 0 ...
    (comp.lang.tcl)
  • Re: Embeding Tcl in C++
    ... > best way in which to run an entire Tcl script, ... Remember, that in C++, the Tcl interpreter is an object which keeps its ... state between consecutive method invocations. ... in a single shot with the same effect. ...
    (comp.lang.tcl)
  • Re: passing list to exec as arguments, how ??
    ... into the second program, then "de-serialize" the information. ... structure - Tcl 8.5's dict, Tclx's keyl* commands, as well as a few ... safest) is to write to a temporary file a tcl script creating your ...
    (comp.lang.tcl)
  • DLL initialization help
    ... I am trying to load a DLL that made by VC++ into my tcl script, ... But I got error mesg from tcl interpreter as: ...
    (comp.lang.tcl)