From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA23913; Mon, 17 Mar 2003 17:00:01 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA23881 for ; Mon, 17 Mar 2003 17:00:00 +0100 (MET) Received: from host07.ipowerweb.com (host07.ipowerweb.com [12.129.206.107]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h2HFxwX05549 for ; Mon, 17 Mar 2003 16:59:59 +0100 (MET) Received: from bikini.inria.fr ([128.93.1.43] helo=rouaix.org) by host07.ipowerweb.com with asmtp (Exim 3.36 #1) id 18ux1f-0003P2-00 for caml-list@inria.fr; Mon, 17 Mar 2003 07:59:47 -0800 Date: Mon, 17 Mar 2003 16:59:52 +0100 Subject: Re: [Caml-list] Labltk.Fileevent for both r and w Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mime-Version: 1.0 (Apple Message framework v551) From: Francois Rouaix To: caml-list@inria.fr Content-Transfer-Encoding: quoted-printable In-Reply-To: <20030314003713.E748@max.home> Message-Id: <7D31FE8F-5891-11D7-8289-000A95773ED2@rouaix.org> X-Mailer: Apple Mail (2.551) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host07.ipowerweb.com X-AntiAbuse: Original Domain - inria.fr X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - rouaix.org X-Spam: no; 0.00; caml-list:01 labltk:01 fileevent:01 vaguely:01 api:01 flags:01 implemented:01 fileinput:01 val:01 otherlibs:01 handler:01 readable:01 patch:02 backward:02 interface:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I vaguely remember that the problem was a defiency of the early=20 versions of Tk (you know, back in the 4.x versions). Of course, it=20 would now make sense to have a better interface to the Tcl FileHandler=20= API. We could have a camltk_createfilehandler and camltk_deletefilehandler=20 mirroring the Tcl API, allowing for the TCL_READABLE and TCL_WRITEABLE=20= flags, with backward compatibility for the old API implemented with the=20= new one (e.g. add_file_input would call createhandler with=20 TCL_READABLE). Seems possible. Anyone has the time to write a patch ;-) ? --f Fran=E7ois Rouaix > I've noted that I cannot set both Fileevent.add_fileinput and > Fileevent.add_fileoutput. A short course to sources showed that is=20 > 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