Often C enum value naming takes into account that they'll live in the outer scope. For instance:

        enum UITableViewRowAnimation {
        UITableViewRowAnimationFade,
            UITableViewRowAnimationRight,
            UITableViewRowAnimationLeft,
            UITableViewRowAnimationTop,
            UITableViewRowAnimationBottom,
            UITableViewRowAnimationNone,
            UITableViewRowAnimationMiddle,
            UITableViewRowAnimationAutomatic = 100
        }

So if you're doing direct bindings where you don't want to change the names, how do you use that in D?

        UITableViewRowAnimation.UITableViewRowAnimationFade

Precisely.
See dmd's source code, enum STC {STCscope, STCforeach, ...}, enum MOD {MODconst, MODshared,...}, etc.

Reply via email to