Re: Hoe to create Singleton objects with GObjects ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux