On Tue, 2007-06-26 at 17:56 +0200, David Nečas (Yeti) wrote:> The commonly listed reasons for nonsubclassable types are> performance and security (in languages where final classes> can have any effect on these) -- not encapsulation which is> achieved by other means. There are other reasons as well. Some classes are not designed to besubclassed and don't work well when subclassed. (A C++ example would bea class with a non-virtual destructor.) The author of such a class canalways document it as being non-subclassable, but designers typicallyprefer to pass enforcement of such constraints to the compiler bydeclaring the class final. _______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://mail.gnome.org/mailman/listinfo/gtk-list