Implicit enum conversions are a stupid PITA

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Mar 26 07:08:17 PDT 2010


On 03/26/2010 12:47 AM, Adam D. Ruppe wrote:
> On Thu, Mar 25, 2010 at 04:52:29PM -0500, Andrei Alexandrescu wrote:
>> It does work well, but there's one more issue: the type of octal!x is
>> always ulong. To make the code industrial strength, you should observe
>> the usual D rules:
>
> I think I made it work.

http://www.dsource.org/projects/phobos/browser/trunk/phobos/std/conv.d?rev=1469


Andrei



More information about the Digitalmars-d mailing list