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

Reply via email to