$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Turner (dkturner_at_[hidden])
Date: 2004-03-03 13:50:27
Hi
> So, the code to implement graph drawing would have to be
> freestanding function that takes window as parameter. What
> does it buy?
>
Good design, for one thing. What business does a window have knowing
about graphs? A window is a window is a window. Same for a drawing
surface. I've seen too many 3000-line CMyDialog: public CDialog classes
to buy the reuse-is-inheritance argument.
If you _really_ want to create a CMyWindow class, you can always use
aggregation.
Regards
David Turner