Library Typedefs are fundamentally broken

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 21 08:20:45 PDT 2014


On 9/21/14, 7:49 AM, bearophile wrote:
> Dicebot:
>
>> module a;
>>
>> alias Int1 = Typedef!(int, "MyInt");
>>
>> module b;
>>
>> alias Int2 = Typedef!(int, "MyInt");
>>
>> // oh I didn't know someone else used that cookie too..
>
> Sooner or later a dirty semantics will bite your ass.

Mine ain't hurting. -- Andrei



More information about the Digitalmars-d mailing list