From: Adam Beneschan <adam@irvine.com>
Subject: Re: Type in allocator has deeper level than designated class-wide type
Date: Tue, 14 Jun 2011 09:01:31 -0700 (PDT)
Date: 2011-06-14T09:01:31-07:00 [thread overview]
Message-ID: <6c4421f7-0fbd-49d0-a108-429d542608a2@h12g2000pro.googlegroups.com> (raw)
In-Reply-To: b6ec6c67-dce6-408c-8885-f55b4263bf88@v11g2000prk.googlegroups.com
On Jun 14, 1:01 am, Adrian Hoe <aby...@gmail.com> wrote:
>
> But this defeats my implementation intention which the size and the
> type of its data array can only be determined during runtime. Any
> suggestion?
There was no reason to change the generic parameters to High_Cloud, or
to change the type of the Data component from Data_Array to Item. As
I tried to explain, your problem had nothing to do with arrays. The
problem has to do with where the Element_Record type extension is
declared, which has to do with where the High_Cloud generic is
instantiated. In your latest example, you instantiated it directly in
a library package, Hen, so there won't be a problem. If you
instantiate it inside a procedure, there will be a problem. But the
types of the components don't matter.
If it *does* make a difference---i.e. if declaring Data as a
Data_Array instead of an Item makes things fail, even if High_Cloud is
still instantiated directly inside Hen---then I believe the problem is
with your compiler, and you need to contact your compiler vendor and
file a bug report.
-- Adam
next prev parent reply other threads:[~2011-06-14 16:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-13 15:31 Type in allocator has deeper level than designated class-wide type Adrian Hoe
2011-06-13 17:11 ` Adam Beneschan
2011-06-14 0:49 ` Adrian Hoe
2011-06-14 1:08 ` Adam Beneschan
2011-06-14 1:11 ` Adrian Hoe
2011-06-14 1:07 ` Adrian Hoe
2011-06-14 1:24 ` Adam Beneschan
2011-06-14 6:04 ` Adrian Hoe
2011-06-14 8:01 ` Adrian Hoe
2011-06-14 16:01 ` Adam Beneschan [this message]
2011-06-15 2:04 ` Adrian Hoe
2011-06-15 15:44 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox