Re: Is there a limit to the number of "things" in an enum



printdude1968@xxxxxxxxx schreef:
On Mar 13, 2:08 pm, Roedy Green <see_webs...@xxxxxxxxxxxxxxxxxxxx>
wrote:
On Sat, 10 Mar 2007 22:44:12 GMT, JohnT <printdude1...@xxxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

public enum BoardPosition {
"QR","QK","QB","Q","K","KK","KB","KR",
"QRP1","QKP1","QBP1","QP1","KP1","KKP1","KBP1","KRP1",
"QRP2","QKP2","QBP2","QP2","KP2","KKP2","KBP2","KRP2",
"QRP3","QKP3","QBP3","QP3","KP3","KKP3","KBP3","KRP3",
"QRP4","QKP4","QBP","QP4","KP4","KKP4","KBP4","KRP4",
"QRP5","QKP5","QBP5","QP5","KP5","KKP5","KBP5","KRP5",
"QRP6","QKP6","QBP6",*"QP6"*,"KP6","KKP6","KBP6","KRP6",
"QRP7","QKP7","QBP7","QP7","KP7","KKP7","KBP7","KRP7";
}
enum 8onstants are names, not strings. Seehttp://mindprod.com/jgloss/enum.html
for examples.
--
Canadian Mind Products, Roedy Green,http://mindprod.com
Priorities: Prevent global climate destabilisation. End both wars. Prepare for oil shortages.

So the quotation marks aren't necessary? But my IDE didn't complain
about them so what does that mean?

That you have a bad IDE?

H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
.



Relevant Pages

  • Re: Is there a limit to the number of "things" in an enum
    ... enum 8onstants are names, not strings. ... Canadian Mind Products, Roedy Green,http://mindprod.com ... Priorities: Prevent global climate destabilisation. ...
    (comp.lang.java.help)
  • Re: Is there a limit to the number of "things" in an enum
    ... enum 8onstants are names, not strings. ... Canadian Mind Products, Roedy Green,http://mindprod.com ... I am using Eclipse 3.2 as my IDE and jdk1.6. ...
    (comp.lang.java.help)
  • Re: Visual C++ 6 support issue
    ... >> A common IDE is a good idea, but usually in programming, you have ... >would do what made sense for that language. ... >or at least for allocating resource ID values within specified ranges. ... >That is, for example, I'd like to keep all the help strings and all the ...
    (microsoft.public.vc.mfc)
  • Re: Visual C++ 6 support issue
    ... > A common IDE is a good idea, but usually in programming, you have ... or at least for allocating resource ID values within specified ranges. ... That is, for example, I'd like to keep all the help strings and all the ...
    (microsoft.public.vc.mfc)
  • Re: Is there a limit to the number of "things" in an enum
    ... enum 8onstants are names, not strings. ... I am using Eclipse 3.2 as my IDE and jdk1.6. ... public enum BoardPosition { ...
    (comp.lang.java.help)