[fpc-pascal] Override constructor in class helper?
Sven Barth
pascaldragon at googlemail.com
Thu Nov 27 23:46:46 CET 2025
Thomas Kurz via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Do., 27. Nov. 2025, 11:33:
> Both ChatGPT and Gemini agree that this won't work because FPC resolves
> Create in this order:
> 1. Look at the real class (TStringList) for a matching constructor.
> 2. Only if no such method exists, check helpers in scope for a matching
> name.
>
What about asking real people from the beginning instead of stochastic
parrots?
Declaring constructors in helpers is indeed supported.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20251127/dfc80bd9/attachment.htm>
More information about the fpc-pascal
mailing list