corner case with labled break

BCS ao at pathlink.com
Fri Jan 25 14:41:33 PST 2008


should this work? (it doesn't now)

|void main()
|{
|	foo: while(true)
|		break foo;   // works
|
|	switch(6)
|	{
|		case 5:
|			while(true)
|				break case 5;   // fails
|
|		case 6:
|			goto case 5;  // works
|
|	}
|}




More information about the Digitalmars-d-learn mailing list