我尝试使用 Delphi 的匿名方法语法:
type
fun = reference to function(): Integer;
Fpc 显示语法错误:
Error: Identifier not found "reference"
与 Delphi 的匿名方法等效的 Free Pascal 是什么(如果有)?
最佳答案
FreePascal 中未实现匿名方法。此类功能的列表是 here .
关于delphi - 如何在 Free Pascal 中使用匿名方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7799077/