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 WAA19866; Tue, 24 Jul 2001 22:51:15 +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 WAA19654 for ; Tue, 24 Jul 2001 22:51:14 +0200 (MET DST) Received: from www.invert.com (invert.com [209.164.21.15]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f6OKpCb21196 for ; Tue, 24 Jul 2001 22:51:13 +0200 (MET DST) Received: (from miles@localhost) by www.invert.com (8.10.1/8.10.1AA) id f6OKp9a38544; Tue, 24 Jul 2001 13:51:09 -0700 (PDT) (envelope-from miles) Date: Tue, 24 Jul 2001 13:51:09 -0700 From: Miles Egan To: Sven Cc: caml-list@inria.fr Subject: Re: [Caml-list] a reckless proposal Message-ID: <20010724135109.A38516@caddr.com> References: <20010724110817.A35216@caddr.com> <20010724222616.D20608@dpt-info.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010724222616.D20608@dpt-info.u-strasbg.fr>; from luther@dpt-info.u-strasbg.fr on Tue, Jul 24, 2001 at 10:26:16PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Jul 24, 2001 at 10:26:16PM +0200, Sven wrote: > On Tue, Jul 24, 2001 at 11:08:17AM -0700, Miles Egan wrote: > > This approach has, in my mind, two advantages: > > 1. The object system becomes more generally useful. > > 2. A confusing and non-orthogonal feature of ocaml is subsumed into > > another, more generally useful and flexible feature. > > But object are more heavyweight than plain record, which are, if i am not wrong, > just named tuples. I'm not sure about the runtime efficiency of objects, but in terms of memory usage objects use one more field (word, I think?) of storage than a record with the same instance members. -- miles "We in the past evade X, where X is something which we believe to be a lion, through the act of running." - swiftrain@geocities.com ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr