[Development] final value classes: some background information and plans

Alex Strickland sscc at mweb.co.za
Wed Mar 7 16:17:47 CET 2012


On 2012/03/07 03:25 PM, Marc Mutz wrote:

> You shouldn't look at the Qt-project developers when discussing interfaces.
> You should look a the Qt programmers in the trenches that happily write
> QColor * c = new QColor(...), as blissfully ignorant of the resource leak as
> they are of Sutter/Alexandrescu. So, Qt can either default to safety or it
> can default to the sharp edge. If you think the latter is acceptable, I urge
> you to run a Qt Open Enrollment training as an eye-opener. Hell, I inherited
> QPtrList publicly when I started out, and I would have been glad if the
> compiler told me I shouldn't do that.

I'll bite, what is the problem with declaring c this way if I promise to 
delete it?

-- 
Regards
Alex



More information about the Development mailing list