[fpc-devel] Newbie question: how does the compiler know the class type of an object ( the Is operator)

Marco van de Voort marcov at stack.nl
Mon Aug 25 13:49:34 CEST 2014

In our previous episode, Sven Barth said:
> >> Oh I see now. The old "object" style used in turbo pascal!
> >>
> > Your original question was about TObject.
> >
> > AFAIK, old style TP "Object" is depreciated and usually can be replaced
> by records containing methods.
> It is *not* deprecated.

It was flagged as one of the constructs to be removed from the Delphi
"Nextgen" compiler. But that was all "looking at".

Afaik the mobile compiler is the fruit of that
project, but I don't have it, haven't tested it, so I don't know if

> At least not in FPC. Also unlike records it
> supports inheritance.

Limited use without dynamic instantiation.

More information about the fpc-devel mailing list