[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: continue keyword - since there is goto now, maybe reconsider continue?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 9 Jan 2014 10:44:40 -0200
> It needs twice the lines (goto statement + label), and you need to
> make up a unique jump label per loop if you got multiple loops in a
> function with such a continue workaround.
Just to get the facts straight: you do not need a unique label per loop,
unless you have *nested* loops using 'continue'. Labels have block
scope, so a label inside a loop is not visible inside another
non-intersecting loop.
-- Roberto