Errors in TDPL

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Jun 21 20:18:41 PDT 2010


On 06/21/2010 08:47 PM, Jonathan M Davis wrote:
> On page 82 of TDPL, it's talking about try/catch/finally statements, and it
> says that "all controlled statement must be block statements; that is they
> must be enclosed with braces." However, dmd does not seem to require that
> try/catch/finally blocks have braces, which is what I would expect that
> sentence to mean. C++ has that restriction for reasons that I don't
> understand, but as far as I can tell, D does not - certainly dmd doesn't
> appear to require it. Is the statement correct but refers to something else,
> or is it in error?
>
> - Jonathan M Davis

That's a surprise to me. Walter, is that intentional?

Andrei


More information about the Digitalmars-d mailing list