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 PAA18341; Tue, 6 Apr 2004 15:18:19 +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 PAA18297 for ; Tue, 6 Apr 2004 15:18:18 +0200 (MET DST) Received: from lri.lri.fr (lri.lri.fr [129.175.15.1]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i36DIHYM029437 for ; Tue, 6 Apr 2004 15:18:17 +0200 Received: from pc8-123 (pc8-123 [129.175.8.123]) by lri.lri.fr (8.12.10/jtpda-5.4) with ESMTP id i36CwTCr007489 ; Tue, 6 Apr 2004 14:58:29 +0200 (MEST) Received: from filliatr by pc8-123 with local (Exim 3.35 #1 (Debian)) id 1BAq9s-0000Ct-00; Tue, 06 Apr 2004 14:58:28 +0200 From: Jean-Christophe Filliatre MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16498.43380.905874.242110@gargle.gargle.HOWL> Date: Tue, 6 Apr 2004 14:58:28 +0200 To: Timo.Tapiola@tietoenator.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] Function forward declaration? In-Reply-To: <60532B15DF92FD4693AA89B2F7E01D8F013F29EC@tmex02> References: <60532B15DF92FD4693AA89B2F7E01D8F013F29EC@tmex02> X-Mailer: VM 7.03 under Emacs 20.7.2 Reply-To: Jean-Christophe.Filliatre@lri.fr (Jean-Christophe Filliatre) X-MailScanner: Found to be clean X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; filliatre:01 filliatre:01 lri:01 caml-list:01 ocaml:01 rec:01 writes:01 syntax:02 recursive:03 let:04 functions:05 functions:05 mutually:07 function:09 declaration:09 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 71 Timo.Tapiola@tietoenator.com writes: > > could someone tell me if there is some way to forward declare functions in > OCaml? > > [...] > > How should I deal with this situation if there is no way to forward declare > functions? Use mutually recursive functions, with syntax let rec f x = ... and g x = ... and h x = ... -- Jean-Christophe ------------------- 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