strong enums: why implicit conversion to basetype?
Trass3r
un at known.com
Thu Jan 26 06:54:09 PST 2012
On Thursday, 26 January 2012 at 14:45:02 UTC, Manfred Nowak wrote:
> Trass3r wrote:
>
>> but by using named enums I made clear that Bla and Blub are
>> totally different
>
> No. Obviously you decjlared both to be implicitely convertable
> to a common super type: int. To change this, both supertypes
> have be changed.
No. The intention is "Bla and Blub don't have anything to do with
each other".
That's why I question the implicit conversion.
More information about the Digitalmars-d
mailing list