public enum LocationType
{
ANY, STATION, POI, ADDRESS
}
for (i in locations) {
switch (i.type) {
case LocationType.STATION:
trace("station");
default:
trace("other");
}
}
for (i in locations) untyped {
switch (i.type) {
case LocationType.STATION:
trace("station");
default:
trace("other");
}
}
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/groups/opt_out.