Re: Re: [glade--] Could raw C++ pointers be eliminated?

Paul Elliott <[email protected]> Wed, 20 Oct 2004 18:40:24 -0500
Newsgroups gmane.comp.gnome.gtkmm,gmane.comp.gnome.glademm
Message-ID <[email protected]>
On Wed, Oct 20, 2004 at 06:43:51PM -0400, Carl Nygard wrote:
> > dialogs look like.
> 
> Did WE just step INTO a zippy carTOON?
> 
> As soon as you require all widgets to take DTRO_holder objects, you lose
> the ability to have widgets as class members or local variables, which
> is one of the design goals of gtkmm.
> 

Yes, but the DTRO_holder objects could be local variables, or class
members. Also the DTRO_holder object could have a method that returns
a REFERENCE to the underlying DTRO, therefore REFERENCES to the DTRO
could be class members or local variables. The user would not be
encouraged or required to take the address of such a REFERENCE.

> Once you require DTRO_holder objects, you muck up the derivation of
> derived widgets, as you pointed out.  I've tried this sort of thing in
> similar circumstances, and you tend to box yourself into a corner.

Are we 100% percent sure there is no way around this problem? What if
we got a smart C++ expert such as Stroustrup or Koenig thinking about
it? Admitting this is tantamount to conceding that there are some
respects for which C++ is inferior to JAVA. This I am extremely
unwilling to do.

-- 
Paul Elliott                       1(512)837-1096
[email protected]                    PMB 181, 11900 Metric Blvd Suite J
http://www.io.com/~pelliott/pme/   Austin TX 78758-3117

_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBdvdoiv9zpDRc3ZkRAkWfAJ0Wjx4ob9E0CjSGrvkmnOzm1y30tACfR072
+ctoDNe8DKX43JLDPT0qpTY=
=Qpnt
-----END PGP SIGNATURE-----