comp.lang.ada
 help / color / mirror / Atom feed
* renaming function result object inside loop
@ 2009-09-05 17:42 Georg Bauhaus
       [not found] ` <gpidncZaHuLEXT_XnZ2dnUVZ_j-dnZ2d@earthlink.com>
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Georg Bauhaus @ 2009-09-05 17:42 UTC (permalink / raw)


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.)



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-09-06 20:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-05 17:42 renaming function result object inside loop Georg Bauhaus
     [not found] ` <gpidncZaHuLEXT_XnZ2dnUVZ_j-dnZ2d@earthlink.com>
2009-09-05 20:27   ` Georg Bauhaus
2009-09-06 11:06 ` Oliver Kellogg
2009-09-06 16:03 ` Robert A Duff
2009-09-06 20:09   ` Georg Bauhaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox