Does the grammar allow an alias statement without a semicolon?
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Oct 17 18:00:17 PDT 2014
On Sat, 18 Oct 2014 00:52:22 +0000
Solomon E via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:
> The line "alias StorageClassesopt BasicType Declarator" in
> http://dlang.org/grammar#AliasDeclaration is apparently missing a
> semicolon after Declarator.
this line should be removed altogether to stop people using this
syntax. ;-) 'alias a = int;' is much better and clearer.
and yes, this is a bug, semicolon is not optional there.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141018/e6da42d2/attachment.sig>
More information about the Digitalmars-d-learn
mailing list