enum scope
Jonathan M Davis
jmdavisProg at gmx.com
Wed Jan 25 17:12:40 PST 2012
On Thursday, January 26, 2012 02:06:45 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?
Why? You're using them in D code, not C code. What difference does it make if
the enum is one that's used in C code or not? Why would you use such aliases
with enums from C but not those from D/ What makes enums from C different?
- Jonathan M Davis
More information about the Digitalmars-d
mailing list