Michael Van Canneyt via fpc-pascal <[email protected]>
schrieb am Mo., 28. Juli 2025, 11:21:

> If this argument is to carry any weight, then we also need to remove
> all instances where FPC did things differently from Delphi:
>
> [snip]
> - anonymous functions explicitly are interfaces.
> [snip]


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).
Except for this specific point FPC and Delphi behave the same here.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to