[fpc-devel] comparing methods
Mattias Gärtner
nc-gaertnma at netcologne.de
Thu Sep 10 14:01:20 CEST 2009
Zitat von Michael Schnell <mschnell at lumino.de>:
> Mattias Gärtner wrote:
>> Can someone explain why in mode objfpc comparing methods only compares
>> the address, but not the instance?
>
> Seems perfectly logical to me (@ = Address of, in this case "code
> address", the code is the same for all instances of a class).
OnClick:=@MyClick;
The @ operator is more than "address of".
Mattias
More information about the fpc-devel
mailing list