[fpc-pascal] How to use a static method as procedure variable?

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jun 30 21:22:19 CEST 2015

On 30/06/15 20:54, silvioprog wrote:
> The code above compiles fine in Delphi (tested in XE 7), but in FPC I
> got the following compiling error:
> Unit1.pas(46,14) Error: Incompatible types: got "<class method type of
> procedure({Open} Array Of Byte;out AnsiString) of object;Register>"
> expected "<procedure variable type of procedure({Open} Array Of Byte;out
> AnsiString);Register>".
> Is this a bug or I need to enable some switch?

FPC currently only supports that in Delphi mode:


More information about the fpc-pascal mailing list