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 PAA22268; Mon, 28 May 2001 15:16:03 +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 PAA22167 for ; Mon, 28 May 2001 15:16:02 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f4SDG1j09621; Mon, 28 May 2001 15:16:01 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA22086; Mon, 28 May 2001 15:16:01 +0200 (MET DST) Date: Mon, 28 May 2001 15:16:01 +0200 From: Xavier Leroy To: Daniel de Rauglaudre Cc: caml-list@inria.fr Subject: Re: [Caml-list] Lazy.Value Message-ID: <20010528151601.B21783@pauillac.inria.fr> References: <20010528144620.G13297@verdot.inria.fr> <20010528145313.F19801@pauillac.inria.fr> <20010528150725.H13297@verdot.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20010528150725.H13297@verdot.inria.fr>; from daniel.de_rauglaudre@inria.fr on Mon, May 28, 2001 at 03:07:25PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > No, this would be unsound -- like all polymorphic references. > > I know, and I knew perfectly your example, but for Lazy, it is > different. The structure of this type is visible only because it is > necessary for the "lazy" statement. Users are not supposed to change > the reference value by hand. OK, I see what you mean. If "lazy e" had a special typing rule and a special compilation rule -- instead of being expanded into "ref (Lazy.Delayed (fun () -> e))" during parsing -- then it would be safe to treat it as generalizable, indeed. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr