[fpc-pascal] Multiple active class helpers at same time
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal