[fpc-pascal] Multiple active class helpers at same time

Maciej Izak hnb.code at gmail.com
Mon Apr 23 13:45:50 CEST 2018

2018-04-23 13:26 GMT+02:00 LacaK <lacak at zoznam.sk>:

> If such feature will not be implemented, is there any other way how to
> solve this problem (how to add functionalities to one class by adding more
> units to final program)?

This can be easily solved by "default field" feature. The work is in
progress (not yet in trunk), but can be tested with NewPascal version of
FPC compiler. You can check examples (compilable with NewPascal):


the usage in PascalSmartPointers is rather more advanced and related to
management operators, but please note that "default field" can easily
replace type helpers/record helpers/class helpers and "default field" is
able to work even with dynamic arrays.

Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180423/c633bb26/attachment.html>

More information about the fpc-pascal mailing list