[fpc-pascal] Turbo Pascal and Object Pascal ways of OOP
Michael Van Canneyt
michael at freepascal.org
Tue Feb 5 11:35:05 CET 2008
On Tue, 5 Feb 2008, Tiziano De Togni wrote:
>
> From the Delphi (7) help and in the borland newgroups I read that the old TP
> style object type is considered to disappear, and actually only kept for code
> compatibility.
>
> I see here that some developers still use the type object because of some
> advantages against the Class type (static allocation).
>
> Can someone explain better these advantages?
The advantage is mainly that you can have objects on the stack.
>
> My other question is:
> Will Free Pascal still support the type object in the future or it is
> considered to disappear in the same way as it is expected in Delphi?
It will not disappear, but all new development is done using classes:
the old objects will not evolve.
Michael.
More information about the fpc-pascal
mailing list