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 EAA15421; Wed, 22 Oct 2003 04:52:43 +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 EAA10084 for ; Wed, 22 Oct 2003 04:52:41 +0200 (MET DST) Received: from herd.plethora.net (herd.plethora.net [205.166.146.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9M2qd129612 for ; Wed, 22 Oct 2003 04:52:40 +0200 (MET DST) 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 h9M2qKC01559; Tue, 21 Oct 2003 21:52:21 -0500 (CDT) Date: Tue, 21 Oct 2003 21:52:17 -0500 (CDT) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: Jacques Garrigue cc: rich@annexia.org, Subject: Re: [Caml-list] OCaml wishlist In-Reply-To: <20031022095952N.garrigue@kurims.kyoto-u.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 wishlist:01 jacques:01 indentation:01 gmisc:01 gmain:01 ocaml:01 garrigue:01 wrote:03 classic:03 oct:03 let:04 let:04 brian:06 brian:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 22 Oct 2003, Jacques Garrigue wrote: > Of course you have to be careful: you can shoot yourself in the foot > with wrong indentation: > > let quit _ = > let icon = GMisc.image () in > if !test_id = 0 then (GMain.Main.quit (); false) else > icon#set_stock `DIALOG_QUESTION; > icon#set_icon_size `DIALOG; > [...] > > In this case you're just going to jump over icon#set_stock... This is a classic problem with dangling-elses, and you see it in C as well: if (x == 3) y = 7; z = 8; 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