From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA30830; Thu, 26 Sep 2002 10:01:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA30826 for ; Thu, 26 Sep 2002 10:01:07 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g8Q814500036; Thu, 26 Sep 2002 10:01:04 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA30822; Thu, 26 Sep 2002 10:01:03 +0200 (MET DST) Date: Thu, 26 Sep 2002 10:01:03 +0200 From: Xavier Leroy To: Michael Vanier Cc: caml-list@inria.fr Subject: Re: [Caml-list] boxing of floats in records/classes Message-ID: <20020926100103.C30246@pauillac.inria.fr> References: <200209250230.g8P2UJI09079@orchestra.cs.caltech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200209250230.g8P2UJI09079@orchestra.cs.caltech.edu>; from mvanier@cs.caltech.edu on Tue, Sep 24, 2002 at 07:30:19PM -0700 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Quick question: are mutable float fields in records or classes boxed? Yes, with the exception of records that have all fields of type float. In the latter case, the record is represented like a float array, with each float unboxed. > If so, why? Mainly because the runtime system and garbage collector support either blocks of pointers or blocks of unboxed data, but not mixed blocks containing both pointers and unboxed data. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners