Thread overview | |||||
---|---|---|---|---|---|
|
November 03, 2008 label scope | ||||
---|---|---|---|---|
| ||||
im trying something like labelx: foreach(...) { foreach(..) { continue labelx; } } just curious, how is the scope of label name. i mean does labelx can be called outside this function or not, so that i wont mess up in naming stuffs |
November 03, 2008 Re: label scope | ||||
---|---|---|---|---|
| ||||
Posted in reply to James | On Sun, Nov 2, 2008 at 11:22 PM, James <james@gmail.com> wrote:
> im trying something like
>
> labelx: foreach(...) {
>
> foreach(..) {
> continue labelx;
> }
> }
>
> just curious, how is the scope of label name. i mean does labelx can be called outside this function or not, so that i wont mess up in naming stuffs
>
No, labels are local to the function.
|
November 03, 2008 Re: label scope | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | ok thanks alot. |
Copyright © 1999-2021 by the D Language Foundation