<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Adriaan van Os via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Do., 2. Feb. 2023, 02:47:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sven Barth via fpc-devel wrote:<br>
<br>
> There is no full documentation for that parameter modifier (someone <br>
> might want to file a bug report for that), but the documentation for <br>
> “const” ( <br>
> <a href="https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4" rel="noreferrer noreferrer" target="_blank">https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4</a> <br>
> ) contains this:<br>
> <br>
> === doc begin ===<br>
> <br>
> Contrary to Delphi, no assumptions should be made about how const <br>
> parameters are passed to the underlying routine. In particular, the <br>
> assumption that parameters with large size are passed by reference is <br>
> not correct. For this the constref parameter type should be used, which <br>
> is available as of version 2.5.1 of the compiler.<br>
> <br>
> === doc end ===<br>
<br>
On debate, see FPC issue 17442.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">There is no debate planned for this in the near future. So even if this might change some time in the future it does not *now* and very likely also not for 3.4.0. Not to mention that things wouldn't change for most platforms anyway, because they only have the platform ABI available and that *must not* change for compatibility with C code. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>