comp.lang.ada
 help / color / mirror / Atom feed
From: GianLuigi Piacentini <ggpiace@tin.it>
Subject: Re: Help with translation: Fortran77 => Ada95
Date: Wed, 04 Jul 2001 23:25:21 GMT
Date: 2001-07-04T23:25:21+00:00	[thread overview]
Message-ID: <3B43A556.FFD6759A@tin.it> (raw)
In-Reply-To: 9hun38$t0m$1@ulysses.noc.ntua.gr

    do label iteration_variable= starting value, ending value
[,                                                             
increment]
      statements to be looped
label last statement to be looped (usually continue)

so   do 100 k=2, n
     ...
100  continue

means loop statements in the ... place the number of times needed to k
to go from 2 to n (with increment 1)
each time k (the loop variable) is used in the loop, it takes its
current value (2, 3, .., n)

goto 120 is a way to jump out of the loop, control resuming at the
statement labelled 120.

goto's after an if seems quite clear, and in old code is used as a quick
and dirt way to skip some instructions (like old BASIC).

goto to the end of a loop is a way to jump to the end of a loop (usually
a continue) skipping some loop statement but remaining inside the loop.

Hoping this helps

G.L. Piacentini



      parent reply	other threads:[~2001-07-04 23:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-04  9:19 Help with translation: Fortran77 => Ada95 N&J
2001-07-04 17:04 ` Warren W. Gay VE3WWG
2001-07-04 17:17 ` Colin Paul Gloster
2001-07-04 17:55 ` Jeffrey Carter
2001-07-05  1:33   ` Gary Scott
2001-07-05  6:03     ` tmoran
2001-07-06  1:35       ` Gary Scott
2001-07-05 17:36     ` Jeffrey Carter
2001-07-06  1:14       ` Gary Scott
2001-07-04 19:51 ` [SOLVED] " N&J
2001-07-04 23:25 ` GianLuigi Piacentini [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