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 MAA26447; Wed, 17 Apr 2002 12:54:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA26519 for caml-list@pauillac.inria.fr; Wed, 17 Apr 2002 12:54:01 +0200 (MET DST) 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 FAA22443 for ; Wed, 17 Apr 2002 05:42:56 +0200 (MET DST) Received: from cpimssmtpu10.email.msn.com (cpimssmtpu10.email.msn.com [207.46.181.85]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3H3gtX16421 for ; Wed, 17 Apr 2002 05:42:55 +0200 (MET DST) Received: from tjakobl2 ([131.107.65.127]) by cpimssmtpu10.email.msn.com with Microsoft SMTPSVC(5.0.2195.4617); Tue, 16 Apr 2002 20:42:53 -0700 Message-ID: <000901c1e5c1$f47cc130$5ba4389d@redmond.corp.microsoft.com> From: "Jakob Lichtenberg" To: Subject: [Caml-list] camlidl - finalizing cows without COM! Date: Tue, 16 Apr 2002 20:42:53 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-OriginalArrivalTime: 17 Apr 2002 03:42:53.0706 (UTC) FILETIME=[F48796A0:01C1E5C1] Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I have just started hacking in camlidl and for now had a really pleasant experience. However I really can't find out how to create a finalized object without going into COM interfaces. Say my underlying C library for manipulating ..... hmmm.. cows has a function that creates and references a new cow, and a function that is used to de-reference the cows when they no longer are live: typedef int cow; cow createAndReferenceCow(void); void freeCow(cow); Now, when the OCaml structures for some reason decide to garbage collect my cow the finalized object should call freeCow...... I have done this a bunch of times without the idl interface, but have no clue how to specify this in an idl file. Help!!! And I would really *love* not to bring COM interfaces into this... Thanks, - Jakob Lichtenberg ------------------- 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