[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
function TypeOf (var x): PObjectType; |
Returns a pointer to the VMT of an object type or variable. This pointer can be used to identify the type of an object.
`TypeOf' can be applied to expressions of object type and to object type names. In the former case, the actual type of polymorphic objects is returned.
ISO Pascal does not define `TypeOf', Borland Pascal does.
program TypeOfDemo; type FooPtr = ^Foo; BarPtr = ^Bar; |
section 9.26 BitSizeOf, section 9.5 AlignOf, section 9.195 PObjectType, section 9.247 SetType, section 9.257 SizeOf, section 8.8 Object-Orientated Programming.