[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 |
Hi, 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 API. 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 TCL_READABLE). Seems possible. Anyone has the time to write a patch ;-) ? --f 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