jastrachan | 8 Apr 10:09 2005
Picon

Re: Eunumeration Type

On 8 Apr 2005, at 08:46, Dierk Koenig wrote:
> Hi,
> is it planned, to support an enumeration type in
> the JSR final version?
> 'enum' is a reserved word, but I guess it's not
> used yet, right?

Yeah, I think we should.

> Any plans in this direction or maybe an own
> Enum Type, which could well have methods
> +, -, ++, --, <=>
> and thus be used within Ranges.

Good idea! :)

> Having an isCases() such that enums would work
> like in Java 5 will be a bit challenging...

isCase() could just perform equals comparison - unless a range is used

case green..blue:
     return "not red :)"

James
-------
http://radio.weblogs.com/0112098/


Gmane