New little features in Descent
Ary Borenszweig
ary at esperanto.org.ar
Wed Aug 26 08:17:55 PDT 2009
Qian Xu wrote:
> Hi Ary,
>
> well done.
>
> Here is a small bug report about the code fomatter:
>
>
> =============================
> import tango.io.Stdout;
> import tango.core.Exception;
>
> void main(char[][] args)
> {
> try
> {
> /* Do some stuff */
> }
> catch (IOException ex)
> {
> Stdout.formatln("Caught IOException!");
> /* Consequence: Clean up and possibly try again. */
> } catch (Exception ex)
> {
> Stdout.formatln("Caught unexpected exception!");
> /* Consequence: Die as gracefully as possible. */
> }
> }
> =============================
>
> You can see, the first catch-block is placed from a new line, but the second
> catch-block is not. Could you please fix this issue?
>
> Thanks in advance.
The result I get, with brackets of try/catch/finally configured to the
next line, is:
import tango.io.Stdout;
import tango.core.Exception;
void main(char[][] args) {
try
{
/* Do some stuff */
} catch(IOException ex)
{
Stdout.formatln("Caught IOException!");
/* Consequence: Clean up and possibly try again. */
} catch(Exception ex)
{
Stdout.formatln("Caught unexpected exception!");
/* Consequence: Die as gracefully as possible. */
}
}
What's your formatter configuration?
More information about the Digitalmars-d-announce
mailing list