Compound assignment operators
Yao G.
yao.gomez at spam.gmail.com
Wed Aug 25 23:49:27 PDT 2010
On Thu, 26 Aug 2010 01:46:02 -0500, Jonathan M Davis
<jmdavisprog at gmail.com> wrote:
> Look at http://www.digitalmars.com/d/2.0/operatoroverloading.html (or
> even
> better, TDPL). The correct function would be opOpAssign. I believe that
> the
> syntax for += would be
>
> opOpAssign!("+")(args) { }
>
> - Jonathan M Davis
Ha ha ha! What a shame, I was reading that page looking for a solution,
but it seems that I just skipped that part. Thanks and sorry for the
stupid question.
--
Yao G.
More information about the Digitalmars-d-learn
mailing list