[Patch] fro kdelibs/kdecore

Kevin Ottens 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
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051020/4d7bf8ea/attachment.sig>

More information about the kde-core-devel mailing list