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 RAA30154; Sat, 18 Jan 2003 17:22:34 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA30602 for ; Sat, 18 Jan 2003 17:22:33 +0100 (MET) Received: from mg.ihep.su (mg.ihep.su [194.190.161.38]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h0IGMWv14002; Sat, 18 Jan 2003 17:22:32 +0100 (MET) Received: by mg.ihep.su (Postfix, from userid 65436) id B27E8B51F0; Sat, 18 Jan 2003 19:22:31 +0300 (MSK) Received: from ontil.ihep.su (ontil.ihep.su [194.190.161.63]) by mg.ihep.su (Postfix) with ESMTP id 2EDFCB5150; Sat, 18 Jan 2003 19:22:29 +0300 (MSK) Received: by ontil.ihep.su (Postfix, from userid 1001) id 00DE967BF; Sat, 18 Jan 2003 22:22:38 +0300 (MSK) Received: from localhost (localhost [127.0.0.1]) by ontil.ihep.su (Postfix) with ESMTP id F41D561C4; Sat, 18 Jan 2003 22:22:38 +0300 (MSK) Date: Sat, 18 Jan 2003 22:22:38 +0300 (MSK) From: Vitaly Lugovsky To: Damien Doligez Cc: caml-list@inria.fr Subject: Re: [Caml-list] let rec In-Reply-To: <9D69A846-2ADD-11D7-AFEF-0003930FCE12@inria.fr> Message-ID: References: <9D69A846-2ADD-11D7-AFEF-0003930FCE12@inria.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, 18 Jan 2003, Damien Doligez wrote: > > The similar problem arises in a case > > let ring l = let rec r = l@r in r > > OCaml type system can not understand that the design is > > safe. > > But it is not unconditionally safe. Its safety depends on how > you defined the @ function. O'Caml doesn't want to look at > the definition of @ because separate compilation is a very > important feature. And why not declare safety flags in the .cmi files? It's even possible to declare side-effects existance (but, there will be some problems with bindings). ------------------- 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