Library Typedefs are fundamentally broken

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 23 09:26:51 PDT 2014


On 9/23/14, 9:15 AM, Adam D. Ruppe wrote:
> On Tuesday, 23 September 2014 at 16:01:35 UTC, Andrei Alexandrescu wrote:
>> mixin(makeTypedef!("HMENU", void*));
>
> struct HMENU { void* _; alias _ this; }
>
> Don't even have to import a Phobos module for it!

Even better. I love good idioms! -- Andrei



More information about the Digitalmars-d mailing list