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: a07f3367d7,da39df064d0b18d7 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.belwue.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 04 Aug 2009 16:18:37 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT's stack checking in Ubuntu 9.04 (and Shootout regex-dna) References: <4a776a94$0$31878$9b4e6d93@newsspool3.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4a78433d$0$30239$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 04 Aug 2009 16:18:37 CEST NNTP-Posting-Host: af8c1138.newsspool1.arcor-online.net X-Trace: DXC=_mA[nNgHT_GI7\_^6>c20Jic==]BZ:afN4Fo<]lROoRA^YC2XCjHcbIa`IOhOFCJYC;9OJDO8_SKFNSZ1n^B98iJXB Brian Drummond schrieb: >> declare >> - Sequence_Lines : Dna_Lines(1..Num_Lines); >> + type Dna_Lines_Pointer is access Dna_Lines; -- avoids stack issues >> + -- Sequence_Lines : Dna_Lines_Pointer := new Dna_Lines(1..Num_Lines); > Sequence_Lines_ptr : Dna_Lines_Pointer := new Dna_Lines(1..Num_Lines); > Sequence_Lines : Dna_Lines(1..Num_Lines) renames Sequence_Lines_ptr.all; > > and now no changes are necessary to the program (which may access the variable > many times) > >> Put(Item => Length(Sequence_Lines), Width => 1); Cool... I had already felt comfortable with .all being optional when there are parens or tick marks, but this one's nice. Thanks.