Loops/Continue: Difference between revisions

Content added Content deleted
m (Why do I keep writing RAISE instead of RETURN? Silly brain)
Line 133: Line 133:
Modula-3 defines the keyword <tt>RETURN</tt> as an exception, but when it is used with no arguments it works just like <tt>continue</tt> in [[C]].
Modula-3 defines the keyword <tt>RETURN</tt> as an exception, but when it is used with no arguments it works just like <tt>continue</tt> in [[C]].


Note, however, that <tt>RETURN</tt> only works inside a procedure or a function procedure, use <tt>EXIT</tt> otherwise.
Note, however, that <tt>RETURN</tt> only works inside a procedure or a function procedure; use <tt>EXIT</tt> otherwise.


Module code and imports are omitted.
Module code and imports are omitted.