From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e95e8407f65e1cfb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-19 12:31:54 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: Look what I caught! was re:Ada paper critic Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Wed, 19 Jun 2002 19:31:04 GMT References: <3d0e5750_2@news.bluewin.ch> <3d0fb5eb_3@news.bluewin.ch> <3D10952F.17A62CCF@despammed.com> NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:26425 Date: 2002-06-19T19:31:04+00:00 List-Id: "Frank J. Lhota" writes: > Also, the standard only requires a valid pointer to the point just after the > end of an array; no similar rule applies to the beginning of the array. For > example, if you declare > > PLANET *before_mercury = solar_system - 1; > > then the standard does NOT require that before_mercury compare meaningfully > with the addresses of the solar_system elements. Really? I thought the above was OK. The STL of C++ depends heavily on this idiom. Is this a difference between C and C++? If so, what's the rationale (in C)? - Bob