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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,77becc9f13dd1c5f,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-14 05:26:03 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!arclight.uoregon.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!not-for-mail From: "Bobby D. Bryant" Newsgroups: comp.lang.ada Subject: Q re Unchecked_Deallocation for unconstrained arrarys. Date: Sat, 14 Apr 2001 06:25:39 +0600 Organization: (I do not speak for) The University of Texas at Austin (nor they for me). Message-ID: <3AD79903.C48AB1BB@mail.utexas.edu> NNTP-Posting-Host: dial-46-47.ots.utexas.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: geraldo.cc.utexas.edu 987251004 17702 128.83.112.175 (14 Apr 2001 12:23:24 GMT) X-Complaints-To: abuse@cc.utexas.edu NNTP-Posting-Date: 14 Apr 2001 12:23:24 GMT X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-1.ac4 i686) X-Accept-Language: en,fr,de Xref: supernews.google.com comp.lang.ada:6888 Date: 2001-04-14T12:23:24+00:00 List-Id: Does Unchecked_Deallocation work with unconstrained arrays? If so, will a single instance work for all arrays in the type, or is a different instance needed for each actual array size? Here are some snippets that show what I am trying to do: type DNA_String is array( Positive range <> ) of Float; type DNA_Ptr is access DNA_String; ... procedure Free is new Ada.Unchecked_Deallocation( DNA_String, DNA_Ptr ); ... DNA : DNA_Ptr; ... DNA := new DNA_String( 1 .. Number_Of_Units**2 ); ... Free( DNA ); Thanks, Bobby Bryant Austin, Texas