httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: [PATCH] Resolve BUILD warnings under ULTRIX/mips (take 3)
Date Sat, 11 Apr 1998 20:13:56 GMT
Dean Gaudet wrote:
> 
> What language are you using?

C++!

>  static_cast isn't in any C++ reference I
> have on hand.

Try Stroustrup (ed. 3).

>  I'll admit that, that when you type so much extra crap sure
> it's bound not to happen.

That's not what you said. You said: "And C++ doesn't help it." Resorting
to "it's too much typing" is sad.

>  But that isn't the point, when you type
> (unsigned)foo you are hiding information.

True, which is why you shouldn't do it. My point was, and is, that C++
has safe(r) casts. And that _is_ the point.

BTW, even g++ 2.7.x allowed a static_cast, though it didn't generate an
appropriate error on this test case.

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|  Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author    http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Mime
View raw message