[fpc-pascal] Surprise. Comparison of method is only done on the routine address
Michael Van Canneyt
michael at freepascal.org
Tue Jul 12 12:18:15 CEST 2016
On Tue, 12 Jul 2016, Dennis Poon wrote:
> 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;
>>> 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?
I have no idea, I am curious myself.
More information about the fpc-pascal