Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 21465 invoked by uid 6000); 3 Aug 1998 22:42:08 -0000 Received: (qmail 21451 invoked from network); 3 Aug 1998 22:42:03 -0000 Received: from eastwood.aldigital.algroup.co.uk (194.128.162.193) by taz.hyperreal.org with SMTP; 3 Aug 1998 22:42:03 -0000 Received: from freeby.ben.algroup.co.uk (freeby.ben.algroup.co.uk [193.133.15.6]) by eastwood.aldigital.algroup.co.uk (8.8.8/8.6.12) with ESMTP id WAA18050 for ; Mon, 3 Aug 1998 22:41:00 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 XAA06904 for ; Mon, 3 Aug 1998 23:40:57 +0100 Message-ID: <35C63C5F.F1C31C67@algroup.co.uk> Date: Mon, 03 Aug 1998 23:40:31 +0100 From: Ben Laurie Organization: A.L. Group plc X-Mailer: Mozilla 4.05 [en] (WinNT; I) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: [Fwd: Problem 2534] 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 Dirk-Willem van Gulik wrote: > > On Mon, 3 Aug 1998, Marc Slemko wrote: > > > On Mon, 3 Aug 1998, Jens-Uwe Mager wrote: > > > > > But I would suspect that they would probably point to some ANSI > > > standard and say the compiler can do with constant string adresses what > > > it likes, there is no way that a user program could rely on particular > > > addresses. > > > > > > > If they can point to some standard saying that doing: > > > > char foo[] = "this is a string" > ... > Be carefull when having the same constant twice; > > I believe that according to the ANSI standard (page 91) > if I read it correctly a compiler _may_ > > char foo[] = "hello"; > char some[] = "one"; > char bar[] = "hello"; > > end up having foo == bar. Or even if you are unlucky > > char foo[] = "hello world"; > char bar[] = "world"; > > can lead to foo+6 == bar. When working with Acorn's compile this sort of > entertainment could give hours of fun; as the compile would not complain > loudly when you did a bar = "indian" and ended up with a foo == "hello > indian". :-(. Maybe a strcpy(bar,"indian") would do that, but even so, IMO the compiler is broken. But there's no way even a broken compiler could do what you describe, surely? 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/ WE'RE RECRUITING! http://www.aldigital.co.uk/recruit/