comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: access-to-classwide has non-static size?
Date: Fri, 27 Mar 2015 14:18:50 +0000
Date: 2015-03-27T14:18:50+00:00	[thread overview]
Message-ID: <lypp7uttf9.fsf@pushface.org> (raw)
In-Reply-To: mf36tu$ogu$1@dont-email.me

"J-P. Rosen" <rosen@adalog.fr> writes:

> Le 27/03/2015 09:53, Simon Wright a écrit :
>>> It's not the component of the Vector (Event_P) which is non static,
>>> > it's the component of the PO (i.e. The_Events).
>> Thanks, J-P. I need to do the allocation explicitly, then. I was hoping
>> to be able to do it at elaboration.
>
> You didn't show where Capacity was declared. If it's a variable, it's
> clearly non static. Did you try it with a constant?

It's a constraint to the PO (sorry I left that out).

I've worked out how to do it at elaboration now:

   The_Instance_Events : access Event_Queues.Vector :=
     new Event_Queues.Vector (Capacity => Capacity);

(compiled but not yet executed - more challenges still to overcome!)

  reply	other threads:[~2015-03-27 14:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-27  8:26 access-to-classwide has non-static size? Simon Wright
2015-03-27  8:46 ` J-P. Rosen
2015-03-27  8:53   ` Simon Wright
2015-03-27  9:13     ` J-P. Rosen
2015-03-27 14:18       ` Simon Wright [this message]
2015-03-27 14:58         ` J-P. Rosen
2015-03-27 15:08           ` Egil H H
2015-03-27 16:51             ` J-P. Rosen
2015-03-27 15:51         ` sbelmont700
2015-03-27 21:11           ` Simon Wright
2015-03-27  8:49 ` Simon Wright
2015-03-27  8:53   ` Simon Wright
replies disabled

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