bearophile can say "i told you so" (re uint->int implicit conv)

Walter Bright newshound2 at digitalmars.com
Thu Mar 28 23:10:18 PDT 2013


On 3/28/2013 6:17 PM, Jonathan M Davis wrote:
> On Thursday, March 28, 2013 15:11:02 H. S. Teoh wrote:
>> Maybe it's time to introduce cast(signed) or cast(unsigned) to the
>> language, as bearophile suggests?
>
> It's not terribly pretty, but you can always do this:

http://dlang.org/phobos/std_traits.html#.Unsigned

http://dlang.org/phobos/std_traits.html#.Signed


More information about the Digitalmars-d mailing list