enum

Jacob Carlborg doob at me.com
Thu Apr 10 23:33:06 PDT 2014


On 11/04/14 07:40, Walter Bright wrote:

> You could, but then you'd lose the self-documenting aspect of static
> type checking. See the "Color" example.
>
>      alias int Color;
>
> doesn't offer any protection from a Color value getting mixed up with a
> file mode mask.

Then you might want to use a struct instead.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list