[fpc-pascal] why can't we define class operator for old fashion object type, but ok for 'advanced record' type?
Maciej Izak
hnb.code at gmail.com
Fri Aug 17 22:54:06 CEST 2018
2018-08-17 17:48 GMT+02:00 Ryan Joseph <ryan at thealchemistguild.com>:
> So the reason that objects/classes in FPC don’t have operators in the
> class (like advanced records) is for Delphi compatibility? That would be
> great if operators were unified across records/classes.
>
In Delphi (NEXTGEN for mobile platforms and Linux) is possible to use class
operators for classes (in NEXTGEN classes are managed by ARC).
More info:
http://blog.marcocantu.com/blog/class_operators_delphi.html
the existence of class operators for classes in NEXTGEN is presented as "a
side effect of the new Automatic Reference Counting support"
--
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180817/a690b12e/attachment.html>
More information about the fpc-pascal
mailing list