Browse thread
Double+Int Records (C-Interface) and Double_array_tag
-
Bauer, Christoph
- Frederic van der Plancke
- Richard Jones
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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