From: Bill Findlay <yaldnifw@blueyonder.co.uk>
Subject: Re: ada loops
Date: Fri, 30 May 2003 17:51:26 +0100
Date: 2003-05-30T17:51:26+01:00 [thread overview]
Message-ID: <BAFD4A9E.2E62%yaldnifw@blueyonder.co.uk> (raw)
In-Reply-To: wcc1xyg9zoa.fsf@shell01.TheWorld.com
On 30/5/03 17:17, in article wcc1xyg9zoa.fsf@shell01.TheWorld.com, "Robert A
Duff" <bobduff@shell01.TheWorld.com> wrote:
>> ... I
>> replaced Ijk with temp variable and put Ijk := temp before goto and
>> it solved the problem, but why we can't have final value when we break
>> out of the loop? What's the logic behind this language behaviour?
>
> So I can be constant inside the loop. The way to think of it is that a
> new constant called I is created and destroyed *each* time through the
> loop.
>
> But as you can see, it backfires if you're used to the way Pascal works.
In BSI/ANSI/ISO Standard Pascal it is illegal to assign to the controlled
variable inside the body of a for loop.
--
Bill-Findlay chez blue-yonder.co.uk ("-" => "")
next prev parent reply other threads:[~2003-05-30 16:51 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-30 15:44 ada loops Roman V. Isaev
2003-05-30 16:00 ` Bill Findlay
2003-05-30 16:17 ` Robert A Duff
2003-05-30 16:46 ` Bill Findlay
2003-05-30 16:51 ` Bill Findlay [this message]
2003-05-30 17:25 ` Stephen Leake
2003-05-30 19:40 ` Robert A Duff
2003-05-30 21:33 ` Pascal Obry
2003-05-31 16:19 ` Robert A Duff
2003-05-31 16:29 ` Robert A Duff
2003-05-30 21:38 ` Simon Wright
2003-05-30 21:51 ` chris.danx
2003-05-31 6:40 ` Pascal Obry
2003-05-31 16:21 ` Robert A Duff
2003-06-02 16:39 ` Stephen Leake
2003-05-31 16:24 ` Oliver Kellogg
2003-05-31 23:15 ` Preben Randhol
2003-06-05 5:14 ` Dave Thompson
2003-06-05 18:15 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox