Enum alias members: yay or nay?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Sep 8 05:40:07 PDT 2013


On 9/8/13, Daniel Murphy <yebblies at nospamgmail.com> wrote:
> Two strategies that will prevent this bug are:
>
> 1) Put the 'alias' members directly after the member they reference
> 2) Put the 'alias' members at the end

There is another strategy, which I currently use, is to explicitly
initialize all enums.

As for #1 or #2, that won't work for me, because I want the alias to
be in a location that makes sense in the documentation, this is why
"click" is right above "double_click", "triple_click", etc.


More information about the Digitalmars-d mailing list