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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,83f4a82a69bb9c76 X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: Creation of storage pools Date: 1999/06/05 Message-ID: #1/1 X-Deja-AN: 485951915 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 References: <374B411C.5EA8@sydney.gecm.com> X-Trace: news.demon.co.uk 928566858 nnrp-10:27573 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada X-Complaints-To: abuse@demon.net Date: 1999-06-05T00:00:00+00:00 List-Id: Graeme Perkes writes: > I defined an unconstrained array of POOL_PTRs: > > type POOL_LIST is array ( INTEGER range <> ) of POOL_PTR; > > I defined a pointer to this type to allow it to be easily > passed to subprograms: > > type POOL_CFG_PTR is access all POOL_LIST; > > Another package is initialised with a pools list: > > -- STORAGE_POOLS_LIST is populated by an initialisation procedure: > > MY_POOL : POOL_LIST.POOL_PTR := STORAGE_POOLS_LIST(I); ^^^^^^^^^ (GNAT 3.11p) When I compile an (edited) version with this error, I get use_pools.adb:5:47: incorrect reference to a Storage Pool pools.ads:37:14: invalid prefix in selected component "Pool_List" Removing the error doesn't help. Writing this works: with Pools; procedure Use_Pools is P : Pools.User_Pool renames Pools.My_Pool.all; type Int_Acc is access Integer; for Int_Acc'Storage_Pool use P; begin null; end Use_Pools; Looks like time to submit a report (Graeme, I guess you _are_ supported? since you're using 3.11b2?)