<p>Am 06.04.2016 16:28 schrieb "Dennis" <<a href="mailto:dec12@avidsoft.com.hk">dec12@avidsoft.com.hk</a>>:<br>
><br>
> objects unit contains<br>
> TObject = OBJECT<br>
> CONSTRUCTOR Init;<br>
> PROCEDURE Free;<br>
> FUNCTION Is_Object(P:Pointer):Boolean;<br>
> DESTRUCTOR Done; Virtual;<br>
> END;<br>
><br>
><br>
> On the other hand, objpash.inc contains<br>
> TObject = class<br>
> public<br>
> { please don't change the order of virtual methods, because<br>
> their vmt offsets are used by some assembler code which uses<br>
> hard coded addresses (FK) }<br>
> constructor Create;<br>
> .....<br>
><br>
> That is so confusing.<br>
> What are other real benefits in inheriting from object unit's TObject?</p>
<p>It's mainly there for backwards compatibility with TP code. It's also the base class of the FV object hierarchy.</p>
<p>Regards,<br>
Sven</p>