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 UAA17067; Tue, 6 Mar 2001 20:13:37 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 UAA17429 for ; Tue, 6 Mar 2001 20:13:36 +0100 (MET) Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f26JDZb04562 for ; Tue, 6 Mar 2001 20:13:35 +0100 (MET) Received: from checkerlap.d6.com ([64.160.54.42]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0G9S00A3CIP1YV@mta5.snfc21.pbi.net> for caml-list@inria.fr; Tue, 6 Mar 2001 11:12:37 -0800 (PST) Date: Tue, 06 Mar 2001 11:13:24 -0800 From: Chris Hecker Subject: Re: [Caml-list] create a closure in external C function? In-reply-to: X-Sender: def6@shell16.ba.best.com To: qrczak@knm.org.pl (Marcin 'Qrczak' Kowalczyk), caml-list@inria.fr Message-id: <4.3.2.7.2.20010306111106.0372b7d0@shell16.ba.best.com> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Content-type: text/plain; charset="us-ascii" References: <4.3.2.7.2.20010306011427.03669de0@shell16.ba.best.com> <20010306180128.B12522@pauillac.inria.fr> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >Last time I looked at this, I hadn't found this functionality in OCaml. >You can at most register OCaml's functions under textual names. This >interface is too limited. You can't even unregister them. You can pass a closure to a C function and apply it to arguments with the callback.h library pretty easily. Or were you talking about something else? Chris ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr