[fpc-pascal]Any way to find out ancestry of object? (at runtime)

Sebastian G√ľnther sguenther at gmx.de
Wed Jun 20 17:23:43 CEST 2001

Michael Van Canneyt wrote:
> For classes you can use the 'is' function:
> If TSomeClass is  TSomeOtherClass then
>   ..

or, somewhat more readable in my opinion:
  if x.InheritsFrom(y) then

- Sebastian

More information about the fpc-pascal mailing list