Widening a type

Jarrett Billingsley jarrett.billingsley at gmail.com
Thu Apr 16 21:15:05 PDT 2009


On Thu, Apr 16, 2009 at 10:11 PM, Doctor J <nobody at nowhere.com> wrote:

> template Widen (T, alias varname)
> {
>    static if (is (T: ulong))
>        ulong varname = 0;
>    else if (is (T: double))

else *static* if(is(T: double))


More information about the Digitalmars-d-learn mailing list