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
proc
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: Inte
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? :)