break while; break for; break foreach
Steven Schveighoffer
schveiguy at gmail.com
Fri May 14 14:17:45 UTC 2021
On 5/13/21 4:14 PM, sighoya wrote:
> On Thursday, 13 May 2021 at 19:36:28 UTC, Steven Schveighoffer wrote:
>> The problem I've had with it is that a label cannot be repeated within
>> a function, so it's hard to write generic code which requires this
>> feature.
>
> Can't this be relaxed in some way?
>
I'm not sure how. If you were not able to jump into scopes, then it
might make sense to allow multiple labels of the same name.
Besides, this doesn't fix the issues that you brought up. If you have
multiple labels, named the same thing, how do you decide which one to go to?
-Steve
More information about the Digitalmars-d
mailing list