[Issue 10552] Cannot apply access specifiers to individual anonymous enum members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 6 05:17:52 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10552



--- Comment #3 from Henning Pohl <henning at still-hidden.de> 2013-07-06 05:17:51 PDT ---
(In reply to comment #2)
> I cannot see any benefits there.
> You can just separate public anonymous enum and private one.
> 
> private enum
> {
>     A = 1,
> }
> enum
> {
>     B = 2,
> }

This has some drawbacks:

1) You have to write a new enum.
2) You cannot take advantage of the properties of anonymous enums.
3) Constants that belong together need to be defined at the same place.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list