From: "James S. Rogers" <jimmaureenrogers@worldnet.att.net>
Subject: Re: Prefix to 'ACCESS must either statically match... But why?
Date: Tue, 28 Jan 2003 21:36:51 GMT
Date: 2003-01-28T21:36:51+00:00 [thread overview]
Message-ID: <TJCZ9.7769$rq4.678319@bgtnsc05-news.ops.worldnet.att.net> (raw)
In-Reply-To: 5ad0dd8a.0301281220.448bc12e@posting.google.com
"Wojtek Narczynski" <wojtek@power.com.pl> wrote in message
news:5ad0dd8a.0301281220.448bc12e@posting.google.com...
> "James S. Rogers" <jimmaureenrogers@worldnet.att.net> wrote in message
news:<hGwZ9.19365$zF6.1390291@bgtnsc04-news.ops.worldnet.att.net>...
>
> > Since this is a parameter array, why not merely return an array of
> > index pairs? The index pairs can index the beginning and end of
> > each array slice.
>
> That's rigth! I haven't thought about it. Thanks!
>
> > The idea of returning a set of "pointers" to pieces of an array is
> > very common in C
>
> Please note that an access to array slice is by no means less safe
> than an access to the whole array. Thus I wish Ada had them.
>
I agree that an access to an array slice is just as safe.
I was merely trying to help you learn the Ada approach to this
kind of a problem. I was trying to explain why the C and Ada
approaches are different.
Jim Rogers
next prev parent reply other threads:[~2003-01-28 21:36 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-27 7:12 Prefix to 'ACCESS must either statically match... But why? Grein, Christoph
2003-01-27 15:46 ` Wojtek Narczynski
2003-01-27 22:32 ` James S. Rogers
2003-01-28 2:51 ` Wojtek Narczynski
2003-01-28 3:19 ` James S. Rogers
2003-01-28 12:14 ` Wojtek Narczynski
2003-01-28 14:43 ` James S. Rogers
2003-01-28 20:20 ` Wojtek Narczynski
2003-01-28 21:36 ` James S. Rogers [this message]
2003-01-29 2:09 ` tmoran
2003-01-29 11:21 ` Wojtek Narczynski
-- strict thread matches above, loose matches on Subject: below --
2003-01-30 6:20 Grein, Christoph
2003-01-29 12:15 Grein, Christoph
2003-01-29 11:57 Grein, Christoph
2003-01-29 6:50 Grein, Christoph
2003-01-29 11:30 ` Wojtek Narczynski
2003-01-27 6:41 Grein, Christoph
2003-01-27 18:33 ` Martin Krischik
2003-01-27 19:05 ` Jeffrey Carter
2003-01-25 22:31 Wojtek Narczynski
2003-01-26 9:57 ` Martin Krischik
2003-01-27 19:30 ` Vadim Godunko
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox