continue in static foreach

Marc jckj33 at gmail.com
Fri Jan 12 22:03:40 UTC 2018


How do I use?

> static foreach(enum string member; members) {
> 			static if(isFunction!(__traits(getMember, C, m ember))) {
> 				continue;
> 			}

give error:

> must use labeled continue within static foreach

then I tried:

> outer:static foreach(enum string member; members) {
>			static if(isFunction!(__traits(getMember, C, > member))) {
>				continue outer;
>			}

give error:

> Error: enclosing label outer for continue not found

How do I fix it?


More information about the Digitalmars-d-learn mailing list