assign value to *this like in c++?

lyan nothanks at 0.0
Thu Jun 20 12:41:15 UTC 2019


Thanks, those are very useful links.

@nogc Vector opUnary(string op)() pure const nothrow
   if (op == "+" || op == "-" || op == "~" || op == "!")
{
    Vector res = void;
    mixin(generateLoopCode!("res.v[@] = " ~ op ~ " v[@];", N)());
    return res;
}

wow...




More information about the Digitalmars-d mailing list