RE: best way to use multiple windows
- From: "Foster, Gareth" <gareth foster siemens com>
- To: gtkmm-list gnome org
- Subject: RE: best way to use multiple windows
- Date: Tue, 19 Jul 2005 09:24:21 +0100
> Isn't that dangerous if exceptions are thrown? Why not let
> the compiler
> do the dirty work? Remember that just the gtkmm instances like a
> Gtk::Dialog are created on the stack, but they create their
> underlaying
> GTK+ objects on the heap. This method seems to be the C++ way for me.
>
> But if you like using dynamically allocated memory here, go on. I just
> wanted to add another alternative how to display popup dialogs :)
>
C
1, You shoot yourself in the foot. 2, You shoot yourself in the foot and
then no one else can figure out what you did.
C++
You accidentially create a dozen instances of yourself and shoot them all in
the foot. Providing emergency medical assistance is impossible since you
can't tell which are bitwise copies and which are just pointing at others
and saying, "That's me, over there."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]