I mean give code to Sun (with no strings).  I already posted the code.  However, it is really not about the code per se.  It is more about the idea of an enumeration type.  If Java had a primitive enumeration, then users could create new composite types.  A user could define a new tristate type with the enumeration type.  The user could use the tristate composite type in an object with behaviors.  For instance, say on mouse clicks an object goes into different states.  Instead of defining constants values, the user could define three states to represent a finite acceptor with the enumeration.  In other words, primitive enumerations would make creating finite acceptors very easy.
/**
  * Kyle Wayne Kelly
  * Computer Science Student
  * University of New Orleans
  * 504-391-3985
  * http://www.cs.uno.edu/~kkelly
  * Glory to God!
  */

Reply via email to