enum scope

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Jan 28 05:14:13 PST 2012


On 1/27/12, Daniel Murphy <yebblies at nospamgmail.com> wrote:
> (could be mixin(exposeEnumMembers!UITableViewRowAnimation); )

I don't think that's possible without passing the name of the enum.
Once you pass the type to the "expose" template it won't know the enum
is named "UITableViewRowAnimation". You /could/ use typeid() to get
the mangled name and try to demangle that, but lo' and behold
core.demangle doesn't work at compile-time. :/


More information about the Digitalmars-d mailing list