Boost logo

Boost :

From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2004-09-24 15:31:52


"Ben Hutchings" <ben.hutchings_at_[hidden]> wrote in message
news:A7F746377BDB7D4EA8E6623AF92F43C80C7DB2_at_copper.bwsint.com...
> Brian Braatz <brianb_at_[hidden]> wrote:
> [Thomas Witt wrote:]
> > > David Abrahams wrote:
> > > > Reece Dunn <msclrhd_at_[hidden]> writes:
> > > >
...
>
> It seems to me that the annoyance of mismatched lifetimes in MFC is
> due to its design as a thin wrapper over the Windows API at a time
> when the language (or at least the MS implementation) did not have
> exceptions. This resulted in the evils of two-phase construction. Qt
> seems to have managed to avoid this, despite not using exceptions, by
> being a more heavyweight wrapper.

That, and the fact that the MFC designers directly mapped API functions to
member functions of the 1st argument type! Hence, the truly mammoth CWnd
class.

Jeff F


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk