Implicit enum conversions are a stupid PITA

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Mar 25 14:04:03 PDT 2010


On 03/25/2010 03:57 PM, Adam D. Ruppe wrote:
> On Thu, Mar 25, 2010 at 03:37:52PM -0500, Andrei Alexandrescu wrote:
>> Contest: define "octal" as per the blueprint above and paste it here.
>
> Trivial. I'll start with the code you posted on the bugzilla.

Now that's what I'd call fast. bearophile made a good point though: 
there are many template instantiations, so at best we should use CTFE. 
What changes would be needed?

Thanks,

Andrei



More information about the Digitalmars-d mailing list