comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Pointer to instance of indefinite array?
Date: Tue, 12 Aug 2014 19:09:37 -0700
Date: 2014-08-12T19:09:37-07:00	[thread overview]
Message-ID: <lsehd1$c0a$1@dont-email.me> (raw)
In-Reply-To: <892c6798-489d-400a-bb9a-7a14605c493f@googlegroups.com>

On 08/12/2014 07:07 PM, NiGHTS wrote:
>
> In this situation I have an array of "Element" records with an unknown number
> of elements. The number of elements are to be defined by the user of this
> package and passed as a pointer to the procedure "Do_Something_With_Array".

Why are you using an access type? There is no need for it.

> What is the best way to achieve this goal without using new / free?

Think in Ada and get rid of the access type.

-- 
Jeff Carter
"That was the most fun I've ever had without laughing."
Annie Hall
43


  reply	other threads:[~2014-08-13  2:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-13  2:07 Pointer to instance of indefinite array? NiGHTS
2014-08-13  2:09 ` Jeffrey Carter [this message]
2014-08-13  2:29 ` Shark8
2014-08-13  3:06   ` NiGHTS
2014-08-13  4:28     ` Jeffrey Carter
2014-08-13 16:06       ` NiGHTS
2014-08-13 17:43         ` Jeffrey Carter
2014-08-13 17:58         ` Shark8
2014-08-13 18:36         ` Dmitry A. Kazakov
2014-08-13  4:31     ` Per Sandberg
2014-08-13  7:47       ` Georg Bauhaus
2014-08-13  8:05         ` Egil H H
2014-08-13 15:32         ` Adam Beneschan
2014-08-14  8:03           ` Georg Bauhaus
2014-08-13 18:17       ` Niklas Holsti
replies disabled

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