From: Xavier Leroy <Xavier.Leroy@trusted-logic.fr>
To: "Xavier.Redon" <Xavier.Redon@eudil.fr>
Cc: caml-list@inria.fr
Subject: Re: A list of finalized values ?
Date: Fri, 7 May 1999 17:32:20 +0200 [thread overview]
Message-ID: <19990507173220.J7966@hoedic.trusted-logic.fr> (raw)
In-Reply-To: <199905062036.WAA27067@servnx.priv.eudil.fr>; from Xavier.Redon on Thu, May 06, 1999 at 10:36:29PM +0200
> I try to build a list of finalized values in C and use it under Caml.
> If I use alloc_final with used=0 and max=1, no problem, that works.
I don't think it does. Finalized blocks must not contain any pointers
into the Caml heap. Your sample code seems to do this.
Rather than finalize the cons cells of the list, you should build a
regular list and wrap each element of the list in a finalized block.
Again, this assumes that the list elements are not Caml pointers but
e.g. pointers into the C heap.
Hope this helps,
- Xavier Leroy
prev parent reply other threads:[~1999-05-07 17:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-06 20:36 Xavier.Redon
1999-05-07 15:32 ` Xavier Leroy [this message]
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=19990507173220.J7966@hoedic.trusted-logic.fr \
--to=xavier.leroy@trusted-logic.fr \
--cc=Xavier.Redon@eudil.fr \
--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