enum behaivor. another rehash of the topic

Iain Buclaw ibuclaw at gdcproject.org
Sun Dec 15 03:17:27 PST 2013


On 15 December 2013 01:16, Joseph Rice <ricejm01 at gmail.com> wrote:
>
> So as you can see, D is just awkward, and it becomes tedious especially if
> you have many many many values in the enum.
>
>

You are in for a shock when you hear about C++11

http://www.stroustrup.com/C++11FAQ.html#enum

That particular FAQ gives a good overview of the rationale of D enums
when someone comes from a C++ background, and we should have something
similar to describe the difference in the Porting / Interfacing to
C/C++ pages.


More information about the Digitalmars-d mailing list