This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: verbose terminate() on by default, pass 2


On Wed, Dec 25, 2002 at 10:06:53AM +0100, Gabriel Dos Reis wrote:
> Phil Edwards <phil@jaj.com> writes:
> | 
> | I hadn't really planned on rewriting Jason's code... what specifically are
> | you disagreeing with?
> 
> Nathan and I are talking about the fact that C++-STYLE emphasizes types
> and that V3 uses (mostly) the style from the C++ Standard.
> 
>   01. Pointers and references
>     char* p = "flop";
>     char& c = *p;
>        -NOT-
>     char *p = "flop";  // wrong
>     char &c = *p;      // wrong

Oh, that.  I thought you were talking about something else.

I've never liked this rule.  *shrug*  Sure, I'll change that code.


> The style used on V3 is "const T*" not "T const *".

Which makes even less sense.  The type can be read aloud right-to-left in
the second case ("pointer to a constant T"), but not in the first case.


Phil

-- 
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]