|
Boost : |
From: Noah Stein (noah_at_[hidden])
Date: 2004-11-05 11:04:33
> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
> On Behalf Of Andy Little
> Sent: Friday, November 05, 2004 8:18 AM
> To: boost_at_[hidden]
> Subject: [boost] Re: Re: GUI Library Proposal for a Proposal
> FWIW I find the difference between Point and Size largely irrelevent
>
> In MFC:
>
> CPoint (CSize );
> CSize(CPoint );
>
> tending to make me think that they could be covered by one type eg
> xy_pair;
It might be a valid distinction. It's certainly derived from affine
geometry's concept of a point as a distinct entity separate from a vector.
The distinction can be helpful since it carries some semantic information,
e.g. points cannot be added unless they are weighted and all the weights add
to 1. If not done properly it ends up being a headache since the semantics
are ignored sometimes and pedantic at others.
My gut reaction is that the distinction would be of little value in a window
GUI, but I honestly haven't analyzed the situation too much.
-- Noah
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk