Implicit enum conversions are a stupid PITA

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Mar 25 13:37:52 PDT 2010


On 03/25/2010 03:20 PM, Adam D. Ruppe wrote:
> On Thu, Mar 25, 2010 at 04:08:26PM -0400, bearophile wrote:
>> OK.
>> But are you sure you want a template named just "O" in the std lib? Oct or Octal can cause less collisions.
>
> The name doesn't matter much to me. I said O!777 just because looks as similar
> on the screen to 0777 as we can without changing the rules of the language.
>
> I'm ok with octal too; the name isn't a big deal.
>
>> If this can work and be safe, then it's a cute idea.
>
> Aye. If only implementing it were free :P

Contest: define "octal" as per the blueprint above and paste it here.

Andrei




More information about the Digitalmars-d mailing list