[fpc-pascal] Class vs Object type

Sven Barth pascaldragon at googlemail.com
Wed Apr 6 14:23:54 CEST 2016


Am 06.04.2016 13:23 schrieb "Graeme Geldenhuys" <
mailinglists at geldenhuys.co.uk>:
>
> Hi,
>
> I use Class and Object data types frequently in my code. I like the fact
> that Object data types can be used without first instantiating an
> instance and it gets freed automatically.

Note: with the modeswitch advandedrecords you can also use methods in
records which allows you to declare operator overloads that can also be
picked up by generics. (Just in case you'd need it)

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160406/3c2cbe48/attachment.html>


More information about the fpc-pascal mailing list