From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 5BD88BC37 for ; Mon, 11 May 2009 19:49:43 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuIAAOsBCEqAcIhIkWdsb2JhbACXDgEBAQEJCwoHEQWnWIUiiE+EAgU X-IronPort-AV: E=Sophos;i="4.40,329,1238968800"; d="scan'208";a="25970415" Received: from redflag.cs.princeton.edu ([128.112.136.72]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 May 2009 19:49:42 +0200 Received: from [192.168.0.100] (H-135-207-240-11.research.att.com [135.207.240.11]) (authenticated bits=0) by redflag.CS.Princeton.EDU (8.13.8/8.13.8) with ESMTP id n4BHnc6W007597 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Mon, 11 May 2009 13:49:41 -0400 (EDT) Message-Id: From: Yitzhak Mandelbaum To: Caml-list List Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: float array/record unboxing Date: Mon, 11 May 2009 13:49:37 -0400 X-Mailer: Apple Mail (2.930.3) X-Proofpoint-Virus-Version: vendor=nai engine=5.3.00 definitions=5611 signatures=523742 X-Proofpoint-Spam-Reason: safe X-Spam: no; 0.00; yitzhak:01 mandelbaum:01 unboxing:01 arrays:01 unboxed:01 sig:01 struct:01 foo:01 struct:01 foo:01 unboxed:01 yitzhak:01 mandelbaum:01 parameter:02 floats:02 hi, 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; } end 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? Thanks, Yitzhak ----------------------------- Yitzhak Mandelbaum