[fpc-devel] Modifiers...

Hairy Pixels genericptr at gmail.com
Tue Jan 30 02:28:24 CET 2024



> On Jan 30, 2024, at 3:56 AM, Michael Van Canneyt via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
> 
> Unfortunately I still don't understand after your explanation what adding 'final' is supposed to accomplish. It may well be legitimate, but I have currently no opinion as I don't understand it.

Final means there is no possible implementation in another subclass so the compiler doesn't need to invoke the method via the vtable. Ideally this works on the class level too because it's a useful optimization.

Regards,
Ryan Joseph



More information about the fpc-devel mailing list