T.zero and T.one for numeric types

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 17 07:57:23 PDT 2015


On Fri, 17 Apr 2015 13:27:18 +0000, Biotronic wrote:

> would work. But why can't I instead, for every numeric type, simply
> write
> 
>     foo(BigInt.zero); foo(float.one); foo(Complex!float.zero);
>     foo(Rational!BigInt.one);
>     foo(Meters.zero);

Omens.sixsixsix...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150417/5a230484/attachment.sig>


More information about the Digitalmars-d mailing list