On Wednesday, 4 November 2015 at 17:26:04 UTC, Daniel Kozak wrote:
V Wed, 04 Nov 2015 14:27:45 +0000
ixid via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
napsáno:

Is there an elegant way of avoiding implicit conversion to int when you're using shorter types?

http://dlang.org/phobos/std_typecons.html#.Typedef

That doesn't appear to prevent implicit conversion. Making two bools (or ubytes etc) that are Typedef and adding them together still results in an int.

Reply via email to