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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!usenet.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 05 Sep 2009 19:42:05 +0200 From: Georg Bauhaus Reply-To: rm.tsoh+bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: renaming function result object inside loop Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4aa2a2ed$0$32665$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 05 Sep 2009 19:42:06 CEST NNTP-Posting-Host: 39d427e0.newsspool2.arcor-online.net X-Trace: DXC=Z6AfESjPThSFm0Y?OE@2^XA9EHlD;3YcR4Fo<]lROoRQ^YC2XCjHcbY\Vh?NhncDZPKQDKiQ7h Is the following a spurious warning? 528. loop 529. declare 530. Line : String renames LIO.Get_Line; --! | >>> warning: renaming function result object is suspicious >>> warning: function "Get_Line" will be called only once >>> warning: suggest using an initialized constant object instead (Get_Line in fact seems to be called each time around the loop.)