Re: [fpc-pascal] Method pointer to a static method of an object?

2010-07-29 Thread Graeme Geldenhuys
Op 2010-07-28 19:41, Michael Van Canneyt het geskryf: It is expected behaviour. Procedure of object only works with classes, and only with real methods, not with class methods. Then should the procedure of object syntax change to become procedure of class - to be less ambiguous? :)

[fpc-pascal] Method pointer to a static method of an object?

2010-07-28 Thread Jetcheng Chu
Hi, I want to make a reference to a static method of an object, but keep getting error messages. program StaticMethodPtr; {$MODE objfpc}{$STATIC ON} type MyMethod = procedure (A: Integer) of object; MyObject = object

Re: [fpc-pascal] Method pointer to a static method of an object?

2010-07-28 Thread Michael Van Canneyt
On Wed, 28 Jul 2010, Jetcheng Chu wrote: Hi, I want to make a reference to a static method of an object, but keep getting error messages. program StaticMethodPtr; {$MODE objfpc}{$STATIC ON} type MyMethod = procedure (A: