Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 24250 invoked by uid 6000); 11 Apr 1998 20:15:20 -0000 Received: (qmail 24238 invoked from network); 11 Apr 1998 20:15:16 -0000 Received: from eastwood.aldigital.algroup.co.uk (194.128.162.193) by taz.hyperreal.org with SMTP; 11 Apr 1998 20:15:16 -0000 Received: from freeby.ben.algroup.co.uk (freeby.ben.algroup.co.uk [193.133.15.6]) by eastwood.aldigital.algroup.co.uk (8.6.12/8.6.12) with ESMTP id UAA21873 for ; Sat, 11 Apr 1998 20:14:26 GMT Received: from algroup.co.uk (naughty.ben.algroup.co.uk [193.133.15.107]) by freeby.ben.algroup.co.uk (8.6.12/8.6.12) with ESMTP id VAA16172 for ; Sat, 11 Apr 1998 21:14:19 +0100 Message-ID: <352FCF04.E63F69A1@algroup.co.uk> Date: Sat, 11 Apr 1998 21:13:56 +0100 From: Ben Laurie Organization: A.L. Digital Ltd. X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: [PATCH] Resolve BUILD warnings under ULTRIX/mips (take 3) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org 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