[fpc-pascal] Managed record questions

Sven Barth pascaldragon at googlemail.com
Fri Mar 9 07:53:31 CET 2018


Am 09.03.2018 05:14 schrieb "Ryan Joseph" <ryan at thealchemistguild.com>:



> On Mar 9, 2018, at 10:32 AM, Michael Van Canneyt <michael at freepascal.org>
wrote:
>
> Why don't you use objects ? No-one has obsoleted this, and you get what
you
> want: an object that can be allocated on the stack or on the heap.

Object is just for backwards compatibility right? Does it support new
features like generics, helpers, overloads  etc…? I have read over the
years they’ve been broken also so I just assumed they were a dead part of
the compiler kept around for old projects. If they still worked then why
introduce “advanced records” which are merely “basic classes”. :) As
pointed out it doesn’t make sense that classes and records diverged in the
way they did.


They are broken, deprecated and essentially dead in Delphi, but in FPC
we've always cared for them as well.
Overloads and generics are already supported and support for helpers could
be easily added. Only major feature missing compared to classes is the
support for extensive RTTI.

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


More information about the fpc-pascal mailing list