> On Jan 30, 2024, at 8:01 PM, Michael Van Canneyt via fpc-devel 
> <fpc-devel@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

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to