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

2015-07-11 Thread silvioprog
On Sun, Jul 5, 2015 at 2:41 PM, Ewald ew...@yellowcouch.org wrote: On 30 Jun 2015, at 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

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

2015-07-05 Thread Ewald
On 30 Jun 2015, at 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

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

2015-06-30 Thread Jonas Maebe
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

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

2015-06-30 Thread silvioprog
On Tue, Jun 30, 2015 at 4:22 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: 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

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

2015-06-30 Thread silvioprog
Hello, Consider the following sample: === begin code === type TMyProc = procedure(ABytes: array of Byte; out AOutput: AnsiString); TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); procedure FormCreate(Sender: TObject); private class var