Flow-control structures: Difference between revisions

Content added Content deleted
(Added Nemerle)
Line 609: Line 609:
WRITE I</lang>
WRITE I</lang>
The above block will output "1".
The above block will output "1".

=={{header|Nemerle}}==
Flow control statements made available in the '''Nemerle.Imperative''' namespace: '''break, continue, return''' (to return from somewhere other than the last expression in a function).

Exceptions can also be used to transfer control from a '''try''' block to a '''catch''' block.


=={{header|OCaml}}==
=={{header|OCaml}}==