Design of reflective enums

Serg Kovrov kovrov at no.spam
Fri Feb 23 11:18:30 PST 2007


Andrei Alexandrescu (See Website For Email) wrote:
> On the contrary, I think it would be great if it were _not_ in the core 
> language, and I'd be happy if a library enum was so good, it would cause 
> deprecation of the built-in one.

It's a great idea! But there are few issues that should be addressed:

1. Library implementation of enums should be able to produce a typedef, 
just like built-in enums.

2. Built-in enums do not produce symbols in object files. Neither should 
library implementation.

-- 
serg.



More information about the Digitalmars-d mailing list