Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-05-20 01:55:11


Marshall Clow wrote:
>
> At 2:17 PM -0400 5/15/01, Beman Dawes wrote:
 
> I like the idea of having a policy class for rounding.
>
> The question that I think needs to be answered is:
> Will fixed point numbers that have different rounding rules
> need to interoperate?

        Rounding is a property of the operation.
It must be specified for every individual application.
 
> If not, then a policy class is the way to go.

        'Global' policies are an evil idea, just
like global data and singletons. Information should
ALWAYS be passed explicitly. [See Bertrand Meyer,
OOSC, 'Principle of Explicit Interfaces']

        By far the worst example I've ever seen
of this is iostreams.

-- 
John (Max) Skaller, mailto:skaller_at_[hidden]
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net

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