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 JAA32384; Wed, 7 Mar 2001 09:56:19 +0100 (MET) 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 JAA32375 for ; Wed, 7 Mar 2001 09:56:19 +0100 (MET) Received: from mail.mimuw.edu.pl (po95.warszawa.cvx.ppp.tpnet.pl [213.76.110.95]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f278tT108767 for ; Wed, 7 Mar 2001 09:55:59 +0100 (MET) Received: (from news@localhost) by mail.mimuw.edu.pl (PLD/8.9.3) id JAA05097 for caml-list@inria.fr; Wed, 7 Mar 2001 09:49:08 +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: 7 Mar 2001 08:49:05 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> <4.3.2.7.2.20010306140915.03782b00@shell16.ba.best.com> <4.3.2.7.2.20010306163224.036498f0@shell16.ba.best.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Trace: qrnik.zagroda 983954945 5041 192.168.0.1 (7 Mar 2001 08:49:05 GMT) X-Complaints-To: news@qrnik.zagroda NNTP-Posting-Date: 7 Mar 2001 08:49:05 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 16:44:06 -0800, Chris Hecker pisze: > > Especially if you statically know types of arguments, > > which is the case I am talking about. > > Which case are you talking about? Are you working on this as well? Not quite. But if I ever write an OCaml binding to a C library, I might need it; and other people might similarly need it. It's a concrete functionality which is missing from OCaml but makes sense. I use its equivalent in Haskell to wrap C libraries which use callbacks in Haskell's higher order functions. > Are you just talking about wanting to expose qsort and other > functions that take callbacks? Yes. -- __("< 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