[fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

Marco van de Voort marcov at stack.nl
Tue Feb 5 14:52:54 CET 2008


> Op Tue, 5 Feb 2008, schreef Luiz Americo Pereira Camara:
> > Moreover, whats the difference between objects and records with methods (the 
> > new Delphi feature)?
> 
> Objects can have virtual methods, constructors, destructors. The new 
> Delphi feature cannot.

The records-with-methods feature originates from .NET, but some cases were
made that they were also added to restrict the search for methods for
duck-type style other new delphi features like for..in, and similar future
expansion. Probably when these features are more closely regarded,
additional reasons/behaviour will pop up.

A very rough summary of the msgs and (IRC-)discussions about the newer delphi
features can be found here:

http://www.stack.nl/~marcov/delphilater.txt




More information about the fpc-pascal mailing list