[fpc-devel] Modifiers...

Hairy Pixels genericptr at gmail.com
Tue Jan 30 14:24:42 CET 2024



> On Jan 30, 2024, at 8:01 PM, Michael Van Canneyt via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
> 
> It's probably more correct to say that you don't want there to be an override
> in a descendent class. Offhand I can't think of a use-case, but why not...

yes you do, because the descendent doesn't know the class inheriting from it is the final class in the chain or not. The compiler could figure this out if all classes were in a single unit but with compiled units there's no way to know what some other code may do.

Regards,
Ryan Joseph



More information about the fpc-devel mailing list