Anonymous enums specification
Lennart Blanco
cokebuttle at gmail.com
Thu Jun 2 20:28:49 PDT 2011
Hi
The page for enums specification
http://www.digitalmars.com/d/2.0/enum.htmldefines enum body syntax as
follows:
EnumBody:
;
{ EnumMembers }
Should it not be
EnumBody:
EnumMember ;
{ EnumMembers }
or perhaps
EnumBody:
EnumMembers ;
{ EnumMembers }
Otherwise, I can't quite grasp how following enums definitions are legal:
enum X = 4;
enum
mega = 1024 * 1024,
pi = 3.14,
euler = 2.72,
greet = "Hello";
(Both of the above enums are accepted by dmd v2.050).
Regards,
Lennart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110603/2b4e9ed4/attachment.html>
More information about the Digitalmars-d
mailing list