[sv-bc] scope of break/continue within foreach loop

From: Paul Graham <pgraham@oasys-ds.com>
Date: Tue Jun 01 2010 - 14:55:21 PDT

A foreach statement with multiple variables is defined as equivalent to a set of nested for loops. If a break statement is executed in the body of a forever loop, does it break out of the innermost of these nested for loops, or does it break out of the outermost? Likewise for a continue statement. I guess it should be the outermost loop. Could this be clarified?

Paul

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Jun 1 14:55:49 2010

This archive was generated by hypermail 2.1.8 : Tue Jun 01 2010 - 14:58:45 PDT