From: "Jakob Lichtenberg" <jl@itu.dk>
To: <caml-list@inria.fr>
Subject: [Caml-list] camlidl - finalizing cows without COM!
Date: Tue, 16 Apr 2002 20:42:53 -0700 [thread overview]
Message-ID: <000901c1e5c1$f47cc130$5ba4389d@redmond.corp.microsoft.com> (raw)
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
next reply other threads:[~2002-04-17 10:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-17 3:42 Jakob Lichtenberg [this message]
2002-04-18 15:30 ` Christopher Quinn
2002-04-19 3:13 ` Jakob Lichtenberg
2002-04-26 8:20 ` Xavier Leroy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000901c1e5c1$f47cc130$5ba4389d@redmond.corp.microsoft.com' \
--to=jl@itu.dk \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox