A New Krazy Checker for Methods Returning const refs

Simon Hausmann hausmann at kde.org
Sun Apr 15 17:47:10 BST 2007


On Sunday 15 April 2007 13:46:02 Jos van den Oever wrote:
> 2007/4/15, Thomas Zander <zander at kde.org>:
> > Which means that he was pointing at an internal member of my class for
> > the whole lifetime of his class.
> >
> > And thats just bad design. Its bound to crash weirdly sooner or later.
>
> Yes, that's bad design but not on the part of your class.
> If every class is forced to only give out threadsave implicitly shared
> objects, you might as well use java. It means that using any STL class
> is out of the question unless it is wrapped. That's a silly overhead.

Exactly, there is no point in using the STL in public kdelibs API :)

Simon
-------------- 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/20070415/f3a14168/attachment.sig>


More information about the kde-core-devel mailing list