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 TAA25076; Wed, 7 Apr 2004 19:36:15 +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 TAA25659 for ; Wed, 7 Apr 2004 19:36:15 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i37HaEYM026631 for ; Wed, 7 Apr 2004 19:36:14 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1BBGyD-0002ge-00 for ; Wed, 07 Apr 2004 18:36:13 +0100 Date: Wed, 7 Apr 2004 18:36:13 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Function forward declaration? Message-ID: <20040407173613.GA10291@redhat.com> References: <00cf01c41bd6$391b53a0$0203a8c0@hoedic> <20040406175320.GA19840@redhat.com> <1081279717.16531.6.camel@qrnik> <002901c41c65$b53e4c50$19b0e152@warp> <1081345936.19232.579.camel@pelican> <20040407141519.GA6618@redhat.com> <1081353080.19232.678.camel@pelican> <20040407164122.GA9247@redhat.com> <87r7uzhezt.dlv@vanicat.homelinux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r7uzhezt.dlv@vanicat.homelinux.org> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones 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; caml-list:01 2004:99 indent:01 indenting:01 'return':99 type-safe:01 ltd:98 caml:01 caml:01 0200,:01 remi:01 vanicat:01 complex:03 wrote:03 investment:94 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 100 On Wed, Apr 07, 2004 at 07:31:02PM +0200, Remi Vanicat wrote: > I don't see what is your problem here... [I think you missed out some ( ... ) around expressions] Well the very specific problem is that tuareg-mode doesn't indent like this. The indenting probably should reflect the actual structure of the code. I have another much more complex example actually which I could post, but I'm a bit short of time now. If you want have a look see the j-london.com/dist/ files login.ml and postform.ml. These could really be helped out with the odd 'return' and 'goto'. Ah, but that would be considered harmful ... Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment MOD_CAML lets you run type-safe Objective CAML programs inside the Apache webserver. http://www.merjis.com/developers/mod_caml/ ------------------- 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