UPDATE I’ve improved on this implementation; please see the later post The Arrogant Enum.
This is about implementing an enum in AS3 with value restriction ( i.e. the programmer should be unable to diminish or add to the set of values) and type safety.
We’ll implement the data type as a Class. In order to keep . . . → Read More: Implementing Enumerated Types in ActionScript 3
