[comp.lang.eiffel] Enumerated types

sommar@enea.se (Erland Sommarskog) (12/26/90)

Also sprach Richard Bielak (richieb@bony1.UUCP):
>Although I'm not sure exactly why, but enumeration type present some
>difficult problems to the compiler when types are extended through
>inheritance. My evidence? Look at OBERON, latest language from N.
>Wirth, it does not have enumerated types.

As I recall Wirth's paper, the reason he gave for removing
enumerates was that he wanted to keep down compiler in size.
A good reason? Obsession, if you ask me. (And I recall that
enumeration types would not be a problem in Oberon. All you
can extend is record types. Oberon always looked to me like
a watered-down version of Simula 20 years too late.)

But indeed, if you had enumeration types in Eiffel, you might 
want to extend them in an inheriting class, requiring some 
suitable mechanism to do this.
-- 
Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
"There is only one success, namely to lead your life in your own way"
Anyone who can give a source for this?