David Crawshaw
2004-04-09 04:13:16 UTC
This:
<ibex>
<ui:box>
var i = 5;
switch (i) {
case 5: ibex.log.info("i=5");
case 6: ibex.log.info("i=6");
}
</ui:box>
</ibex>
Produces:
Detecting JVM... Mac OS X ==> org.ibex.plat.Java2
=======================================================
Platform: Ibex build: unknown
Main: argument 0: src/
argument 1: test
loading xwar
invoking initial template
test.t:5: i=5
Should the switch() statement fall through to the next case (like
Java)? I tried to work it out from the Ecma reference, but it's not the
most accessible of documents.
-- d
<ibex>
<ui:box>
var i = 5;
switch (i) {
case 5: ibex.log.info("i=5");
case 6: ibex.log.info("i=6");
}
</ui:box>
</ibex>
Produces:
Detecting JVM... Mac OS X ==> org.ibex.plat.Java2
=======================================================
Platform: Ibex build: unknown
Main: argument 0: src/
argument 1: test
loading xwar
invoking initial template
test.t:5: i=5
Should the switch() statement fall through to the next case (like
Java)? I tried to work it out from the Ecma reference, but it's not the
most accessible of documents.
-- d