Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use anonymous methods in Free Pascal?

I tried to use Delphi's syntax for anonymous methods:

type
    fun = reference to function(): Integer;

Fpc shows a syntax error:

Error: Identifier not found "reference"

What's the Free Pascal equivalent to Delphi's anonymous methods, if any?

like image 479
mcandre Avatar asked Oct 17 '11 20:10

mcandre


1 Answers

Anonymous methods are not implemented in FreePascal. The list of such features is here.

like image 56
David Heffernan Avatar answered Oct 20 '22 14:10

David Heffernan