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 WAA19525; Tue, 6 Mar 2001 22:18:03 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA19507 for ; Tue, 6 Mar 2001 22:18:02 +0100 (MET) Received: from mail.mimuw.edu.pl (pm14.warszawa.cvx.ppp.tpnet.pl [213.76.108.14]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f26LHgb06596 for ; Tue, 6 Mar 2001 22:17:42 +0100 (MET) Received: (from news@localhost) by mail.mimuw.edu.pl (PLD/8.9.3) id WAA00399 for caml-list@inria.fr; Tue, 6 Mar 2001 22:16:44 +0100 X-Authentication-Warning: qrnik.zagroda: news set sender to qrczak@knm.org.pl (Marcin 'Qrczak' Kowalczyk) using -f From: qrczak@knm.org.pl (Marcin 'Qrczak' Kowalczyk) Subject: Re: [Caml-list] create a closure in external C function? Date: 6 Mar 2001 21:16:40 GMT Organization: Klub Nieszkodliwych =?iso-8859-2?Q?Manjak=F3w?= Message-ID: References: <4.3.2.7.2.20010306011427.03669de0@shell16.ba.best.com> <20010306180128.B12522@pauillac.inria.fr> <4.3.2.7.2.20010306111106.0372b7d0@shell16.ba.best.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Trace: qrnik.zagroda 983913400 333 192.168.0.1 (6 Mar 2001 21:16:40 GMT) X-Complaints-To: news@qrnik.zagroda NNTP-Posting-Date: 6 Mar 2001 21:16:40 GMT User-Agent: slrn/0.9.6.3 (Linux) To: caml-list@inria.fr Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Tue, 06 Mar 2001 11:13:24 -0800, Chris Hecker pisze: > You can pass a closure to a C function and apply it to arguments > with the callback.h library pretty easily. It's not enough to convert a closure to a C function pointer. For example to wrap C's qsort() in this interface: ('a -> 'a -> int) -> 'a array -> unit -- __("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/ \__/ ^^ SYGNATURA ZASTĘPCZA QRCZAK ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr