English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
float array/record unboxing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-05-11 (17:49)
From: Yitzhak Mandelbaum <yitzhakm@C...>
Subject: float array/record unboxing

Does anyone know whether float arrays/records are unboxed if float is  
used to instantiate a  type parameter? E.g.

module F (R:sig type t end) = struct
   type foo = { a1 : R.t; b1 : R.t; }

module M = F(struct type t = float end)

Is M.foo an unboxed array of floats (as per Chapter 18.3.2 in the  
manual) or not? Empirical evidence suggests that the floats *are*  
boxed. If this is the case, can anyone point me to where this feature  
is documented?

Yitzhak Mandelbaum