2018-04-23 13:26 GMT+02:00 LacaK <la...@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): https://github.com/maciej-izak/PascalSmartPointers/tree/master/examples 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
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal