comp.lang.ada
 help / color / mirror / Atom feed
From: mockturtle <framefritti@gmail.com>
Subject: Re: Why this program does not compile? (iterators)
Date: Fri, 22 Apr 2016 04:14:44 -0700 (PDT)
Date: 2016-04-22T04:14:44-07:00	[thread overview]
Message-ID: <c2041073-5d22-402f-a029-690dc92b3437@googlegroups.com> (raw)
In-Reply-To: <lt7u1i$6bn$1@speranza.aioe.org>

Although this thread is almost one year old, I would like to add my 2-cent experience (I just tripped on this bug), for the sake of historical record.

It actually seems that it is the "for" construction. I tried to use the iterator "by hand" (calling First at the beginning and then running a while loop with Next at the end) and everything seems to work.

In another case, I had a loop similar to

  for I in Object.Iterate loop
      X := Fun(I);

  end loop;

and I got the warning "X is read but never assigned."  It looks like another for-related bug. 

      parent reply	other threads:[~2016-04-22 11:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-22 17:18 Why this program does not compile? (iterators) Victor Porton
2014-08-22 23:39 ` Randy Brukardt
2014-08-23  4:56   ` Victor Porton
2014-08-23  0:15 ` Egil H H
2014-08-23  0:31   ` Adam Beneschan
2016-04-22 11:14 ` mockturtle [this message]
replies disabled

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