[Lazarus] object type: strange behaviour

A.J. Venter aj at outkastsolutions.co.za
Fri Oct 22 13:22:45 CEST 2010


TP Objects were implemented as "Records with methods" years ago - but
it wasn't really true OO.
There was no concept of a class - and objects were literally nothing
BUT a record with methods, only the barest concepts of virtual,
private and public methods were present, inherittence was... shoddy at
best...

It was a poor man's OO before OP gave us proper class-based objects.

The whole records-with-methods thing to me sounds like a cheap way of
using code that was lying around to add an entry to a featurelist that
was technically already there ages ago - and useless.

On Fri, Oct 22, 2010 at 1:14 PM, Graeme Geldenhuys
<graemeg.lists at gmail.com> wrote:
> Op 2010-10-22 10:19, Birger Jansen het geskryf:
>>
>> I'm converting a project from Delphi to FreePascal. It is a mathematical
>> application that uses records with methods.
>
> Side Note:
> I still don't get why Borland/Embarcadero did that... records with methods.
> MvC hinted that it is because .Net has records with methods. But delphi
> Objects do exactly that, and existed since Turbo Pascal days. In terms of
> Delphi, what exactly is the difference between a "record with methods" and
> a Object?
>
> Regards,
>  - Graeme -
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://opensoft.homeip.net:8080/fpgui/
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
A.J. Venter
Founder and lead developer, Kongoni GNU/Linux
www.kongoni.co.za
www.silentcoder.co.za - Blog




More information about the Lazarus mailing list