enum scope

Trass3r via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 7 02:58:25 PDT 2014


On Thursday, 26 January 2012 at 01:06:46 UTC, Trass3r wrote:
> When writing C bindings I usually create lots of aliases via a 
> string mixin to pull enum members into the enclosing scope so 
> it's compatible to C.
> Would it be wise to let the compiler do this automatically for 
> extern(C) enums?

Does anyone know how you would implement this in the compiler?


More information about the Digitalmars-d mailing list