From: micha <micha-1@fantasymail.de>
To: OCaml Mailing List <caml-list@inria.fr>
Subject: allocating memory for c-structures
Date: Tue, 26 Dec 2006 19:15:35 +0100 [thread overview]
Message-ID: <459166C7.4080005@fantasymail.de> (raw)
Normaly I allocate memory for c-structures with malloc or with "new" for
c++ objects. Some time ago a read about a library which places external
structures in strings of the interfacing languages (it was a scheme lib
I think). So instead of using malloc or new I would allocate an
ocaml-string and put the c-structure there. So it will be free by the gc.
That seems o.k. for me, any comments? I'm missing something?
cheers
Michael
next reply other threads:[~2006-12-26 18:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-26 18:15 micha [this message]
2006-12-26 18:33 ` [Caml-list] " skaller
2006-12-26 18:35 ` Richard Jones
2006-12-26 18:55 ` micha
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=459166C7.4080005@fantasymail.de \
--to=micha-1@fantasymail.de \
--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