{Tk.send source("wfile")}

Jacques Mequin j-mequin at ti.com
Thu Jan 17 15:19:13 CET 2002


In order to save my time, I would like to re-user directly an existing Tcl/Tk
script under Oz
That way I can avoid, for example, to translate the whole thing in QTk syntax

So, I am trying, in emacs   declare
                           {Tk.send source("wfile.tcl")}

in the "wfile.tcl" there is a situation such that

     set     outputfile [open "foo" "w"]
     puts  $outputfile "hello world"
     close $outputfile

Apparently, the "set outputfile ..." is successful since the "foo" file is
created but it remains empty after the "puts ..." (and the "close ...")

What is wrong ???

Regards,
    Jacques
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.





More information about the mozart-users mailing list