enhancing enums

Nick Sabalausky a at a.a
Tue Dec 8 16:43:29 PST 2009


"Tomek Sowiñski" <just at ask.me> wrote in message 
news:op.u4m6tf2eot0hzo at las-miodowy...
>Dnia 08-12-2009 o 23:17:55 hehe45 <a3161739 at uggsrock.com> napisa³(a):
>
>> In c++ it is valid syntax to have trailing commas at the and of enum 
>> definitions:
>> enum {a, b, c, };
>> This would be a useful addition to D too.
>
>Please no. I've done some C++ but the "need semicolon after brace?" is 
>always something I need to think twice about.
>

I don't think he was talking about the semicolon, just the comma between the 
"c" and the "}". 





More information about the Digitalmars-d mailing list