Re: [gtkmm] "manage" and Glib::RefPtr
- From: Christof Petig <christof petig-baender de>
- To: Daniel Bausch <DanielBausch gmx de>
- Cc: Daniel Elstner <daniel elstner gmx net>, Paul Davis <pbd op net>, "Butler, Gerald" <gbutler Jewels COM>, gtkmm-list gnome org
- Subject: Re: [gtkmm] "manage" and Glib::RefPtr
- Date: Mon, 14 Oct 2002 15:55:27 +0200
Daniel Bausch wrote:
You need no refcounting. Refcounting is a feature for programmers who spread
pointers all over the program. There's no refcounting in standard C++ because
the people who defined the standard are good software developers. I say:
Before introducing such a horrible feature, organize your software! The
programmer must have real control over the lib, not the lib over the
programmer. The lib shall serve the programmer and not make him headaches,
why some objects are not destroyed when he wants them to.
As far I can tell even Stroustrup introduces refcounting pointers to
sanely implement polymorphic containers. He calls it a Handle. So this
rant against refcounting is plain wrong.
Yours
Christof
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]