Interesting user mistake
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 3 11:44:54 PDT 2015
On Thursday, 3 September 2015 at 18:42:37 UTC, H. S. Teoh wrote:
> Now, in C, unary + actually does something -- it causes
> promotion of narrow ints to int. I'm not sure if it does that
> in D as well.
what is this, javascript? a|0 :P
Seriously though, I never knew that. And I can't find where unary
+ is defined in D... I see the grammar line, but not explanation
of what it actually does.
Perhaps it is meant to be self-evident!
More information about the Digitalmars-d
mailing list