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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1a17bf1815b2a692 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Ada-trivial ! Date: 1999/08/10 Message-ID: <7oq0n9$sf6$1@nnrp1.deja.com>#1/1 X-Deja-AN: 511154422 References: <934306032.27513.0.nnrp-10.c2de38ef@news.demon.co.uk> X-Http-Proxy: 1.0 x36.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Tue Aug 10 20:06:10 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-08-10T00:00:00+00:00 List-Id: In article <934306032.27513.0.nnrp-10.c2de38ef@news.demon.co.uk>, "Duncan Woodward" wrote: > type Container_Matrix is array(POSITIVE range <>, > POSITIVE range <>, > POSITIVE range <>) of Boolean; > > procedure1 Set_Container_Size(x,y,z:Integer); > PROBLEM: How do I create an instance of type Container_Matrix > that is visible to all procedures in the package. Off the top of my head, I see two possibilities: o Make the global object an access type. Have Set_Container_Size deallocte the old one (if its not null), and allocate a new one of the correct size. o Wrap your global container matrix in a variant record (with defaults for the index lengths). -- T.E.D. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.