From: wojtek@power.com.pl (Wojtek Narczynski)
Subject: Re: Prefix to 'ACCESS must either statically match... But why?
Date: 28 Jan 2003 04:14:09 -0800
Date: 2003-01-28T12:14:10+00:00 [thread overview]
Message-ID: <5ad0dd8a.0301280414.6ac8d45e@posting.google.com> (raw)
In-Reply-To: lFmZ9.18308$zF6.1340596@bgtnsc04-news.ops.worldnet.att.net
> Why are you choosing to pass an access to a Stream_Element_Array
> instead of just the Stream_Element_Array? Avoiding the use of an
> access type would also eliminate the problem. Remember that any
> parameter, even an IN parameter can be passed by reference by the
> compiler. In fact, an array object is most frequently passed by
> reference.
Because this function uses 'Unrestricted_Access to return an array of
accecceses to slices of the parameter array. This is supposed to yeld
in better speed and compactness, and let me avoid heap allocations. If
I were to copy the strings out of this huge array I'd have to allocate
them on heap.
>> And in general I find the inablility to declare access type
>> subtypes in parallel with the subtypes for the designated
>> type obstructive.
>
> It appears that you are thinking in C while programming in Ada.
Heh, maybe. Please take a look at my other post - even the compilers
are unsure if what I've written is Ada ;-)
Thanks,
Wojtek
next prev parent reply other threads:[~2003-01-28 12:14 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 [this message]
2003-01-28 14:43 ` James S. Rogers
2003-01-28 20:20 ` Wojtek Narczynski
2003-01-28 21:36 ` James S. Rogers
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