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: g2news1.google.com!news2.google.com!goblin1!goblin.stu.neva.ru!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 17:25:30 -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> <58da0e59-418b-4545-a29c-9403d1ab6288@b9g2000pri.googlegroups.com> NNTP-Posting-Host: 17cba1f28f01b7ef315aebe883ddc2fe Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 3188cf3708016453791945c993421237 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: <58da0e59-418b-4545-a29c-9403d1ab6288@b9g2000pri.googlegroups.com> X-Validate-Post: http://news.tornevall.net/validate.php?trace=3188cf3708016453791945c993421237 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: g2news1.google.com comp.lang.ada:9678 Date: 2010-03-19T17:25:30-07:00 List-Id: Jerry wrote: > > That is true when accessing array elements and slices but not for > indicating the entire array as a single entity such as in a subroutine > argument, e.g. > > y := cos(x); > > or > > z := x + y; That's true. I haven't done a lot of code like that recently, so not doing a renames tends to work fine for me; hence "generally". (Also, I haven't messed with big arrays much recently, either.) If you do reference the whole array frequently, it's a different story. -- Jeff Carter "I wave my private parts at your aunties." Monty Python & the Holy Grail 13