Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-07-26 15:04:57


> Tim Butler wrote:

> ------------------------------------------------------------------
> > 6.7. Place const after the base type it modifies. This simple rule
> makes it
> > easier to write type declarations correctly and will make your
> declarations
> > consistent with compiler-generated type descriptions in error
> messages.
>
> o I disagree with this simply because I suspect the "const before"
> form is more familiar to most people.

        The rule was written to get people
to change from inconsistent habits:

        T const * const * const * const x = ..

is consistent.

        const T * const * const * const x = ..

plainly isn't.

-- 
John (Max) Skaller, mailto:skaller_at_[hidden] 
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
New generation programming language Felix  http://felix.sourceforge.net
Literate Programming tool 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