[Patch] fro kdelibs/kdecore
ervin at kde.org
Thu Oct 20 08:28:42 BST 2005
Le Jeudi 20 Octobre 2005 08:52, Nicolas Goutte a écrit :
> But in a struct you cannot have member functions, not even a constructor
> and a destructor (as far as I know).
That's wrong. You can have methods in a struct. For C++ a struct is indeed a
"class that defaults to public".
> So personally I would prefer a "class" solution (which KDE always used
> until it was changed in kdelibs, apparently for MSVC-support).
I prefer a class solution too, at least for consistency.
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the kde-core-devel