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 AAA23125; Wed, 7 Apr 2004 00:37:46 +0200 (MET DST) 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 AAA23207 for ; Wed, 7 Apr 2004 00:37:45 +0200 (MET DST) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i36Mcajq009652 for ; Wed, 7 Apr 2004 00:38:37 +0200 Received: from [80.229.56.224] (helo=chetara) by ptb-relay02.plus.net with esmtp (Exim) id 1BAzCR-000Cb6-RV for caml-list@inria.fr; Tue, 06 Apr 2004 22:37:43 +0000 From: Jon Harrop Organization: University of Cambridge To: caml-list@inria.fr Subject: Re: [Caml-list] Function forward declaration? Date: Tue, 6 Apr 2004 23:37:53 +0100 User-Agent: KMail/1.5.4 References: <60532B15DF92FD4693AA89B2F7E01D8F013F29EC@tmex02> <20040406175320.GA19840@redhat.com> <1081279717.16531.6.camel@qrnik> In-Reply-To: <1081279717.16531.6.camel@qrnik> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200404062337.53104.jdh30@cam.ac.uk> X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 marcin:01 'qrczak':01 kowalczyk:01 val:01 int:01 rec:01 compile:02 unit:03 wrote:03 let:04 let:04 cheers:06 function:09 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 83 On Tuesday 06 April 2004 8:28 pm, Marcin 'Qrczak' Kowalczyk wrote: > ... > What would this code do? > > val g : unit -> int > let f () = g () > let x = f () > let y = x + 1 > let g () = y If you could get it to compile, would that not just give the same as: let rec l1=1::l1 and l2=1::l2 in l1=l2;; =;-) Cheers, Jon. ------------------- 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