Version française
Home     About     Download     Resources     Contact us    
Browse thread
Double+Int Records (C-Interface) and Double_array_tag
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Frederic van der Plancke <fvdp@d...>
Subject: Re: [Caml-list] Double+Int Records (C-Interface) and Double_array_tag


"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