Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Three issues with labels

0 views
Skip to first unread message

biju

unread,
Aug 9, 2008, 1:46:54 AM8/9/08
to
function a() {
x:;
b();
y:
c();
y:
d();
}
a

alert(a);

// gives ==>

function a() {
x: {
}
b();
y:
c();
y:
d();
}

/*

Three issues:-

1. Why label "x" is indented?
2. Why.extra braces after label "x" ?
3. Why it is not an error if there exist 2 labels with same name?

are they bug or is it as per design?

*/

0 new messages