<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr">Ryan Joseph <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>> schrieb am So., 3. Juni 2018, 05:35:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Jun 2, 2018, at 3:19 PM, denisgolovan <<a href="mailto:denisgolovan@yandex.ru" target="_blank" rel="noreferrer">denisgolovan@yandex.ru</a>> wrote:<br>
> <br>
> BTW, you first overload is not implemented properly. You need to clone "left" first and return it as a result.<br>
<br>
That’s probably the functionality you want but as an aside why can’t + overload mutate the caller (left side) and not return anything?<br></blockquote></div><div dir="auto"><br></div><div dir="auto">Because operator overloads are static methods not normal methods. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div>