[fpc-pascal] [OT] sealed?

Graeme Geldenhuys graeme at geldenhuys.co.uk
Tue Oct 8 11:35:16 CEST 2013

On 2013-10-07 19:35, Sven Barth wrote:
> Simple: You are not allowed to create child classes of sealed classes 
> (the compiler enforces this). FPC supports this since 2.4.2.

All good and well, but I really don't see the point of a class that you
can't extend. The original developer can never foresee all possible use
cases in the future. We already have issues with some classes defining
fields or methods and private, when they would have been better suited
as protected. Sealed classes are just going to make matters worse. It
defeats the whole purpose of OOP.

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

More information about the fpc-pascal mailing list