comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Look what I caught! was re:Ada paper critic
Date: Wed, 19 Jun 2002 19:31:04 GMT
Date: 2002-06-19T19:31:04+00:00	[thread overview]
Message-ID: <wcc7kkv5amf.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: FW2Q8.893$iG4.643@nwrddc04.gnilink.net

"Frank J. Lhota" <NOSPAM.lhota.adarose@verizon.net> 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



  reply	other threads:[~2002-06-19 19:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-17 17:35 Look what I caught! was re:Ada paper critic Alderson, Paul A.
2002-06-17 18:31 ` Darren New
2002-06-17 21:40 ` Vinzent Hoefler
2002-06-17 23:14   ` Darren New
2002-06-18 14:49     ` Hyman Rosen
2002-06-18 22:36     ` Vinzent Hoefler
2002-06-18 13:28   ` Marin David Condic
2002-06-24 19:17     ` Vinzent Hoefler
2002-06-18 19:16   ` Kevin Cline
2002-06-18 22:36     ` Vinzent Hoefler
2002-06-19 14:29       ` Wes Groleau
2002-06-19 16:59         ` Darren New
2002-06-19 17:48           ` Wes Groleau
2002-06-19 17:56             ` Darren New
2002-06-19 17:11         ` Frank J. Lhota
2002-06-19 19:31           ` Robert A Duff [this message]
2002-06-19 20:02             ` Hyman Rosen
2002-09-24 15:23               ` Matthew Heaney
2002-06-19 19:37         ` Robert A Duff
2002-06-19 13:52 ` Ted Dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox