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-Thread: 103376,ae395e5c11de7bc9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!nuzba.szn.dk!pnx.dk!news.tornevall.net!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: segfault with large-ish array with GNAT Date: Fri, 19 Mar 2010 13:22:44 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <642ddf8b-1d45-4f74-83ad-2c755040ca33@k24g2000pro.googlegroups.com> <4ba13454$0$6720$9b4e6d93@newsspool2.arcor-online.net> <12q6q5hjqihq8lpgpt9mjmn30l9q9lrmkm@4ax.com> NNTP-Posting-Host: 63b0204cad1fb18496de982611e01741 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 9a992d0ea09652067df523fdb7921a75 X-Complaints-To: abuse@tornevall.net X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <12q6q5hjqihq8lpgpt9mjmn30l9q9lrmkm@4ax.com> X-Validate-Post: http://news.tornevall.net/validate.php?trace=9a992d0ea09652067df523fdb7921a75 X-SpeedUI: 1738 X-Complaints-Italiano: Parlo la lingua non � italiano User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news2.google.com comp.lang.ada:10643 Date: 2010-03-19T13:22:44-07:00 List-Id: Brian Drummond wrote: > > But code using the array can be written as normal, with a "my_array ... renames > my_array_ptr.all" clause to hide the pointer. Generally, after something like A : constant Array_Ptr := new Array_Type [(Low .. High)]; You can use A just as if it were the array itself: B := A (A'First); A (A'First) := A (A'Last); A (A'Last) := B; -- Jeff Carter "If you think you got a nasty taunting this time, you ain't heard nothing yet!" Monty Python and the Holy Grail 23