comp.lang.ada
 help / color / mirror / Atom feed
From: cochiti.lanl.gov!jlg@lanl.gov  (Jim Giles)
Subject: Re: Ada statement
Date: 14 Jan 92 22:16:58 GMT	[thread overview]
Message-ID: <1992Jan14.221658.7468@beta.lanl.gov> (raw)

In article <1992Jan14.204928.21571@cbnewsl.cb.att.com>, willett@cbnewsl.cb.att.
com (david.c.willett) writes:
|> [...]
|> 	You can use the NULL statement as one alternative of a conditonal
|> 	accept, or as an alternative in a conditonal.  In both cases, it
|> 	would be analogous to the FORTRAN  or C "continue".

The Fortran continue and the C continue do completely different things.
In Fortran, continue does nothing and is a convenient place to hang
a statement label.  In C, a continue statement causes the rest of the
innermost loop to be skipped and for the next pass of the loop to begin
(ie. the "cycle" statement in some languages).  The C feature which 
resembles a Fortran continue is ";" - the NULL statement - same as 
Ada.


J. Giles

             reply	other threads:[~1992-01-14 22:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-01-14 22:16 Jim Giles [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-01-15 17:37 Ada statement bu.edu!rpi!usenet.coe.montana.edu!ogicse!verdix!brucej
1992-01-15 17:13 Stan McQueen
1992-01-15 15:11 Greg Harvey
1992-01-15  6:09 dog.ee.lbl.gov!network.ucsd.edu!usc!sdd.hp.com!uakari.primate.wisc.edu!us
1992-01-15  6:04 csus.edu!wupost!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!nntp.uorego
1992-01-15  1:15 dog.ee.lbl.gov!network.ucsd.edu!swrinde!mips!zaphod.mps.ohio-state.edu!so
1992-01-14 21:39 Jeffrey M. Schweiger
1992-01-14 20:49 david.c.willett
1992-01-14 19:18 Brian Hanafee
1992-01-14  3:13 csus.edu!wupost!spool.mu.edu!news.cs.indiana.edu!bronze!master.cs.rose-hu
replies disabled

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