Type deduction on templated constructor.

Philippe Sigaud via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 30 02:47:35 PDT 2014


On Wed, Jul 30, 2014 at 11:46 AM, Philippe Sigaud
<philippe.sigaud at gmail.com> wrote:
>> I expected such an answer and I do understand the decisions behind it. Yet,
>> you gave me a really GOOD news! Having to write cast(ubyte) 1 was way too
>> much verbose for my liking, while the new ubyte(1) is reasonable enough.
>
> Why not use `1u`?

Ow! Ignore that. 1u is an uint, not an ubyte.


More information about the Digitalmars-d-learn mailing list