<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body smarttemplateinserted="true">
<div id="smartTemplate4-template">Hallo,</div>
<div><br>
</div>
<div><br>
</div>
<div>i made a patch for faster management operators:
<a class="moz-txt-link-freetext" href="https://gitlab.com/benibela/fpc-source/-/commit/1aa0866112c97dd0c7ed7f3a4b1c7ab6420cb942">https://gitlab.com/benibela/fpc-source/-/commit/1aa0866112c97dd0c7ed7f3a4b1c7ab6420cb942</a></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>And it has been working fine on fixes3_2, but when I tried to
apply it on main, I get an error message:<br>
</div>
<div><br>
</div>
<div><span style="font-family:monospace">views.inc(4318,17) Error:
Wrong number of parameters specified for call to "$copy" <br>
video.inc(180,35) Error: Found declaration: operator
copy(constref TEnhancedVideoCell;var TEnhancedVideoCell);
Static;<br>
</span></div>
<div><br>
</div>
<div>I have been creating two paranodes for the call like that:<br>
</div>
<div><br>
</div>
<div> if is_rtti_managed_type(left.resultdef) and
is_record(left.resultdef)<br>
and (mop_copy in
trecordsymtable(left.resultdef.getsymtable(gs_record)).managementoperators)
then<br>
begin<br>
hsym :=
tprocsym(left.resultdef.getsymtable(gs_record).Find('copy'));<br>
hp := ccallparanode.create(left,
ccallparanode.create(right, nil));<br>
result :=
ccallnode.create(hp,hsym,hsym.owner,nil,[],nil);<br>
<br>
</div>
<p>should it be done differently?<br>
</p>
<p><br>
</p>
<div><span style="font-family:monospace"><span
style="font-family:monospace"> </span> </span><br>
<br>
Viele Grüße,<br>
<p>Benito </p>
</div>
<p><br>
</p>
</body>
</html>