[fpc-pascal]How to obtain runtime type of class?

Anton Tichawa anton.tichawa at chello.at
Tue Feb 25 15:01:39 CET 2003


Hello, Marco!

>     if x IS TClassB then

What object code is generated for this? I assume that, informally speaking,

Ord(TClassB) = Ord(@VMT)

and that

if x IS TClassB

yields somthing like

if @(x.VMT) = TClassB?

Am I wrong here?

Thanks,

Anton.

----------

"Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte 
Berechnungen einzuweben."

Doris Langley Moore: Ada, Countess of Lovelace (London 1977).

----------

Anton Tichawa
Volkertstrasse 19 / 20
A-1020 Wien
mobil: +43 664 52 07 907
email: anton.tichawa at chello.at

----------



More information about the fpc-pascal mailing list