> 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." _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
