Ideas regarding flow control and loops
Marco Aurélio
thecoreh at gmail.com
Sat Nov 3 13:00:24 PDT 2007
Charles D Hixson Wrote:
> No. Finally should be the label on a block of code that will
> be executed *WHATEVER* happens in the preceding loop,
> including the raising of an exception.
Hmm Yeah, now that I think about it, having it on that way would make it inconsistent with the try-catch-finally behavior... Maybe adding another keyword? or something like:
for(int i = 0; i < 30; i++)
{
if (something)
break;
} catch (break) {
Foo();
}
More information about the Digitalmars-d
mailing list