[fpc-pascal] Variable of class method type of function

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Jul 15 15:35:51 CEST 2012


On 15 Jul 2012, at 15:09, CA Gorski wrote:

> But then I get the following error trying to use the variable:
> 
> Error: Incompatible types: got "<class method type of function(AnsiString):Boolean of object;Register>" expected "<procedure variable type of function(AnsiString):Boolean of object;Register>"

That seems to be a bug in ObjFPC mode procvar support. It works in Delphi mode. Please always include a complete test program in the future, so that people wanting to help you don't have to write multiple test programs themselves to figure out what the code you were using might look like.


Jonas


More information about the fpc-pascal mailing list