From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 31DA9BB9C for ; Thu, 19 Jan 2006 11:58:15 +0100 (CET) Received: from decis.be ([194.78.219.157]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k0JAwEUf030756 for ; Thu, 19 Jan 2006 11:58:14 +0100 Received: from decis.be by decis.be (MDaemon.PRO.v8.1.3.R) with ESMTP id md50000388951.msg for ; Thu, 19 Jan 2006 11:57:07 +0100 Message-ID: <43CF7100.3EB85A98@decis.be> Date: Thu, 19 Jan 2006 10:59:12 +0000 From: Frederic van der Plancke Organization: Decis X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,fr-BE,fr MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Double+Int Records (C-Interface) and Double_array_tag References: <26EB47FDD566A7469FC862DAF373792F07D72B@kaiserslautern1.lmsintl.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Authenticated-Sender: fplancke@decis.be X-MDRemoteIP: 192.168.0.20 X-Return-Path: fvdp@decis.be X-MDaemon-Deliver-To: caml-list@yquem.inria.fr Reply-To: fvdp@decis.be X-Miltered: at concorde with ID 43CF70C6.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; plancke:01 caml-list:01 c-interface:01 unboxed:01 arrays:01 unboxed:01 wrote:01 int:01 int:01 floats:02 floats:02 float:03 float:03 frederic:03 frederic:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 "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