English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Labltk.Fileevent for both r and w
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-03-17 (16:00)
From: Francois Rouaix <francois@r...>
Subject: Re: [Caml-list] Labltk.Fileevent for both r and w

I vaguely remember that the problem was a defiency of the early 
versions of Tk (you know, back in the 4.x versions). Of course, it 
would now make sense to have a better interface to the Tcl FileHandler 
We could have a camltk_createfilehandler and camltk_deletefilehandler 
mirroring the Tcl API, allowing for the TCL_READABLE and TCL_WRITEABLE 
flags, with backward compatibility for the old API implemented with the 
new one (e.g. add_file_input would call createhandler with 
Seems possible.
Anyone has the time to write a patch ;-) ?

François Rouaix

> I've noted that I cannot set both Fileevent.add_fileinput and
> Fileevent.add_fileoutput. A short course to sources showed that is 
> seems
> to be true: when you call
> Tcl_CreateFileHandler(tcl_filehandle(fd), TCL_READABLE,
>                        FileProc, (ClientData)(Long_val(cbid)));
> from the otherlibs/labltk/support/cltkFile.c (camltk_add_file_input),
> it removes the handler for writing, according to

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners