Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
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 Archives:
Bug reports: FAQ:
Beginner's list: