|
I mean give
code to Sun (with no strings). I already posted the code. However,
it is really not about the code perse. 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 comosite
type in an object with behaviours. 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! */ |
