On Feb 16, 5:14 pm, jg <[email protected]> wrote: > Hi all, > > sorry if this question is trivial... but I don't know how to deal with > this in js, and specifically in rhino shell... > > Say, I have an enum like > enum Cardsuit { CLUBS, DIAMONDS, SPADES, HEARTS } > > how do I use it in Rhino?
Enumeration values aren't ordinary fields, so I'm afraid they aren't currently reflected by Rhino's class wrapper at all. Feel free to file a bug, I'll try to come up with a patch when I find time. Hannes > Thx > jg _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
