DIP65: Fixing Exception Handling Syntax

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 25 02:39:22 PDT 2014


On 7/21/2014 3:41 AM, Jakob Ovrum wrote:
> On Thursday, 17 July 2014 at 21:03:08 UTC, Walter Bright wrote:
>> Did you see my response?
>>
>> I suggested recognizing in the parser:
>>
>>    ( Identifier )
>>
>> as a special case, in addition to using Parser::isDeclaration().
>
> I just want to point out that this special case is lacking, and will inevitably
> cause someone a headache when they try to do something like:
>
> catch(typeof(foo)) {
>      ...
> }
>
> Which is currently valid (as I'd expect).

That can be special cased, too.


More information about the Digitalmars-d mailing list