From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: access-to-classwide has non-static size? Date: Fri, 27 Mar 2015 14:18:50 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="e362043f1eec5b72fb571caf32708303"; logging-data="25991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FUcVRriFV7dD7m/omg8lb9lPnAbMrgC4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) Cancel-Lock: sha1:Iox2XXZ9zDchQ3EBFZEjEquhQEA= sha1:EHv3upymYUb+5bP1vqZr3fvZYsI= Xref: news.eternal-september.org comp.lang.ada:25288 Date: 2015-03-27T14:18:50+00:00 List-Id: "J-P. Rosen" 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!)