<div dir="ltr">Also, one other thing: you should <b>really</b> be specifying the right-hand-side array parameter as "const" there. If you don't, it will be copied in its entirety instead of being passed by reference. Basically just always pass everything as "const" 

<span style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">(or "constref" if it's specifically a record)</span>

 unless you literally can't.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 22, 2018 at 12:10 PM, Ryan Joseph <span dir="ltr"><<a href="mailto:ryan@thealchemistguild.com" target="_blank">ryan@thealchemistguild.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I mentioned this as an aside a while ago but I don’t remember getting a response so I’d like to formally reintroduce the issue. <br>
<br>
Should I file a bug report for this or is it expected behavior? Personally I’d really like to get implicit array overloads working properly.<br>
<br>
<br>
<br>
<br>
program test;<br>
<br>
type<br>
        TMyClass = class<br>
        end;<br>
<br>
operator + (left: TMyClass; right: array of integer): TMyClass; overload;<br>
var<br>
        i: integer;<br>
begin<br>
        for i in right do<br>
                writeln('add ', i);<br>
        result := left;<br>
end;<br>
<br>
var<br>
        c: TMyClass;<br>
begin<br>
        c += [1, 2, 3]; // ERROR: Operator is not overloaded: "TMyClass" + "Set Of Byte"<br>
end.<br>
<br>
Regards,<br>
        Ryan Joseph<br>
<br>
______________________________<wbr>_________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.<wbr>org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/<wbr>cgi-bin/mailman/listinfo/fpc-<wbr>pascal</a></blockquote></div><br></div>