enum
Paulo Pinto
pjmlp at progtools.org
Fri Apr 11 22:51:43 PDT 2014
Am 12.04.2014 02:19, schrieb Walter Bright:
> On 4/11/2014 12:30 PM, Paulo Pinto wrote:
>> Sure, but aren't those use cases a consequence of C's misuse of enums,
>> which are
>> handled better by numeric constants?
>
> Again, a list of numeric constants offers no benefit of having a
> separate type.
>
You are right, but a type that can hold values that aren't part of the
sequence is also not optimal.
More information about the Digitalmars-d
mailing list