Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Frederic van der Plancke <fvdp@decis.be>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Double+Int Records (C-Interface) and Double_array_tag
Date: Thu, 19 Jan 2006 10:59:12 +0000	[thread overview]
Message-ID: <43CF7100.3EB85A98@decis.be> (raw)
In-Reply-To: <26EB47FDD566A7469FC862DAF373792F07D72B@kaiserslautern1.lmsintl.com>



"Bauer, Christoph" wrote:
> 
> Hi,
> 
> given a type like
> 
> type t = {
>    i : int;
>    f0 : float;
>    f1 : float;
>    ...
>    f100 : float;
> }
> 
> A value from this type is constructed in C-code. Is
> it possible to create a block with a Double_array_tag?
> (Because there are only unboxed values in this record.)

For what I know, all float values in this record are actually boxed because of the "int" field. Only records (and arrays) that contain only floats have their floats unboxed.

Frédéric


  reply	other threads:[~2006-01-19 10:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-19 10:24 Bauer, Christoph
2006-01-19 10:59 ` Frederic van der Plancke [this message]
2006-01-19 11:25 ` [Caml-list] " Richard Jones

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=43CF7100.3EB85A98@decis.be \
    --to=fvdp@decis.be \
    --cc=caml-list@yquem.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