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 XAA14638; Sun, 15 Aug 2004 23:30:36 +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 XAA15701 for ; Sun, 15 Aug 2004 23:30:34 +0200 (MET DST) Received: from herd.plethora.net (herd.plethora.net [205.166.146.1]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i7FLUXRM022823 for ; Sun, 15 Aug 2004 23:30:33 +0200 Received: from bhurt.plethora.net (bhurt.plethora.net [205.166.146.49]) by herd.plethora.net (8.11.6/8.10.1) with ESMTP id i7FLLdJ29469; Sun, 15 Aug 2004 16:21:39 -0500 (CDT) Date: Sun, 15 Aug 2004 16:29:36 -0500 (CDT) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: Shishir Ramam cc: caml-list@inria.fr Subject: Re: [Caml-list] trouble w/ recursive let definitions. In-Reply-To: <83f599680408151005288b6bf9@mail.gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at concorde with ID 411FD5F9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 rec:01 rec:01 wrote:03 recursive:03 recursive:03 redirect:95 let:04 let:04 functions:05 functions:05 aug:05 define:05 binds:05 brian:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sun, 15 Aug 2004, Shishir Ramam wrote: > Hi, > I might be missing something here, but recursive let definitions have me a > little confused. The two cases below narrow down my problem. Why is case-2 > invalid? rec binds with the let, and not the function name. This gets me occassionally as well. So if you have: let rec f ... = ... and g ... = ... both f and g are recursive functions. All of the functions you define after with however many 'and' clauses are all recursive. -- "Usenet is like a herd of performing elephants with diarrhea -- massive, difficult to redirect, awe-inspiring, entertaining, and a source of mind-boggling amounts of excrement when you least expect it." - Gene Spafford Brian ------------------- 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