[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:
http://bugs.freepascal.org/view.php?id=27414
Jonas
More information about the fpc-pascal
mailing list