org.ibex.js switch() statement
David Crawshaw <[email protected]> Fri, 9 Apr 2004 14:13:16 +1000
| Newsgroups | gmane.comp.java.xwt.core |
|---|---|
| Message-ID | <[email protected]> |
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