On Tue, 9 Jan 2024, Hairy Pixels via fpc-pascal wrote:

Do sealed classes actually call virtual methods statically or are they just for 
compiler warnings?

The virtual methods are called exactly like other virtual methods.

Sealed just means you cannot create a descendant class. No optimizations are
done.

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

Reply via email to