C++ UFCS update
jmh530 via Digitalmars-d
digitalmars-d at puremagic.com
Wed Feb 24 07:36:50 PST 2016
On Wednesday, 24 February 2016 at 10:03:19 UTC, Ola Fosheim
Grøstad wrote:
>
> if(!a!(c,!d)(!e)){...}
Working through this,
!a, !d, and !e are unary operators
a!(x)(y) is the only template
Looks messy, but really isn't that hard to figure out.
I don't think !d makes sense as a template argument (unary not
something usually doesn't produce a type). If you want it even
easier to understand, how about:
alias acd = a!(c, d);
if(!(acd(!e)))
> a~=3;
> b=~3;
I agree that this is confusing. Only thing I would recommend is
formatting and maybe adding parenthesis.
a ~= 3;
b = (~3);
More information about the Digitalmars-d
mailing list