[fpc-pascal] Surprise. Comparison of method is only done on the routine address
Dennis Poon
dennis at avidsoft.com.hk
Tue Jul 12 12:14:45 CEST 2016
Michael Van Canneyt wrote:
>
>
> On Tue, 12 Jul 2016, Dennis wrote:
>
>> I always thought comparison of methods is done on both the data and
>> the code part.
>> TMethod = record
>> Code : CodePointer;
>> Data : Pointer;
>> end;
>> But the following proves it is NOT.
>> What is the rationale behind such behavior?
>
> AFAIK: Delphi compatibility.
>
May I know what do they claim to be the rationale behind this decision?
Dennis
More information about the fpc-pascal
mailing list