Library Typedefs are fundamentally broken

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 20 08:25:17 PDT 2014


On 9/19/14, 11:36 PM, Marco Leise wrote:
> Am Fri, 19 Sep 2014 08:02:30 -0700
> schrieb Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org>:
>
>> On 9/18/14, 11:45 PM, Marco Leise wrote:
>>> We should probably revert to having real typedefs.
>>
>> Should not.
>
> Ok, but don't ask me to use
>    alias ALfloat = std.typecons.Typedef!(float, "yummyCookie23");
> when it could be
>    typedef ALfloat = float;
> ! :)

I think this is an entirely palatable idiom:

alias ALfloat = std.typecons.Typedef!(float, "ALfloat");


Andrei



More information about the Digitalmars-d mailing list