<div dir="auto"><div><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Michael Van Canneyt via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Mo., 28. Juli 2025, 11:21:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If this argument is to carry any weight, then we also need to remove <br>
all instances where FPC did things differently from Delphi:<br>
<br>[snip]<br>
- anonymous functions explicitly are interfaces.<br>[snip]</blockquote></div></div><div dir="auto"><br></div><div dir="auto">Anonymous functions *are* provided using interfaces in Delphi. The only difference is that in Delphi an anonymous function is *always* an interface while in FPC it depends on the left hand side as it might be assigned to a function or method pointer if there's nothing captured (except Self in case of method pointers). </div><div dir="auto">Except for this specific point FPC and Delphi behave the same here. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"></div></div>