class scope virtual template functions

BCS ao at pathlink.com
Thu May 29 14:37:57 PDT 2008


Reply to Jason,

>> 1) the template members are enumerations (just build the whole set)
>> 
> Much to my frustration, D's enums do not represent a completely
> enumerated set. This causes all kinds of problems such as invalidating
> your example, preventing a default toString method, and mangling
> otherwise clean switch statements.
> 

Just because /you and I/ can't get the full set, doesn't say the compiler 
can't. (but point taken)

OTOH using enums as OR'ed bit flags or having more than one element with 
the same value sinks it just as sunk.





More information about the Digitalmars-d mailing list