Re: Why empty destructor in gtkmm HelloWorld example?



On Mon, 2010-01-11 at 22:29 +0100, Francesco Pretto wrote:
> 2010/1/11 michi7x7 <mailing-lists michi7x7 de>:
> > Hi,
> >
> > it's not needed.
> >
> 
> 
> Thanks. While the answer was pretty obvious, I am often of the opinion
> that examples should be as simple, clear and clean as possible. So if
> the author is listening, please consider removing this and other (if
> any) unneeded statements from gtkmm examples. :)

I think I generally add them because I guess that many readers may be
unfamiliar with C++ rather than just unfamiliar with gtkmm. So I think
they might need the extra hints that they should generally write
clean-up code in destructors. Empty destructors are fairly common in
examples, so I don't they do much harm. I might change my mind though.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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