[fpc-devel] Object upgrades (new)

Sven Barth pascaldragon at googlemail.com
Sat Jun 15 21:02:25 CEST 2019


Ryan Joseph <genericptr at gmail.com> schrieb am Sa., 15. Juni 2019, 20:43:

>
>
> > On Jun 15, 2019, at 12:50 PM, Sven Barth via fpc-devel <
> fpc-devel at lists.freepascal.org> wrote:
> >
> > I don't see a need to add management operators to objects. Objects have
> constructors and destructors, so they don't need Initialize and Finalize
> operators and they have a defined assignment operation. Just leave the
> poor, old objects alone.
>
> It’s not about objects as much as record inheritance (which as I was told
> will not be happening). I don’t see why Pascal got left out of this one
> particular thing but since we’ve always had objects it only makes sense to
> keep them up to date. Not sure why there would be any resistance to this.
> Making a mode switch for “advanced objects” seems sensible enough to me
> (unless you want to make a whole new keyworld like “struct” or something).
>

I neither see a reason for record inheritance nor for the objects to be
more like records. Pascal doesn't need to replicate each and every feature
of other languages. What we need is libraries to help users do their work.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190615/87940bf5/attachment.html>


More information about the fpc-devel mailing list