Error in Declarator definition ?
kb3ctd2 at yahoo.com
Mon Feb 19 05:44:14 PST 2007
"Carlos Smith" <carlos-smith at sympatico.ca> wrote in message
news:erbfh1$1jpv$1 at digitalmars.com...
> In the grammar for Declarations,
> there is:
> BasicType2 Declarator
> () Declarator
> Identifier DeclaratorSuffixes
> () Declarator DeclaratorSuffixes
> the "() Declarator" parts, are they Ok ?
> Should that be written "( Declarator )" instead ?
Yep. There have been a few of these misplaced parens since the spec was
moved over to DDoc.
Although, what is this syntax for?
int (x) = 5;
This works. Why would you want to put parens there?
More information about the Digitalmars-d-learn