comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic.brenta@insalien.org>
Subject: Re: Handling Exceptions?
Date: 05 Nov 2003 01:20:48 +0100
Date: 2003-11-05T01:20:48+01:00	[thread overview]
Message-ID: <m3wuafll7j.fsf@insalien.org> (raw)
In-Reply-To: m34qxjn04m.fsf@insalien.org

Ludovic Brenta <ludovic.brenta@insalien.org> writes:
> The RM and the Rationale recommend that you indent the "exception"
> keyword at the same level as the "begin" keyword, like this:
> 
> declare
>    -- declarations
> begin
>    -- statements
> exception
>    when others =>
>       -- statements
> end;
> 
> This better reflects the grammatical structure for exception handlers.


And, I might add, I personally recommend you use Emacs with ada-mode,
which indents automatically for you as you type.  I have been heard to
say "There is only one editor, but Vim is the other" :)

(and yes, I write this in Emacs using Gnus).

-- 
Ludovic Brenta.



  reply	other threads:[~2003-11-05  0:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-04 21:13 Handling Exceptions? Freejack
2003-11-05  0:13 ` Ludovic Brenta
2003-11-05  0:20   ` Ludovic Brenta [this message]
2003-11-05  6:57     ` Freejack
2003-11-05  9:09       ` tmoran
2003-11-05 12:33       ` David C. Hoos
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox