I am making a D bridge in the C library, and this came up with C code using typedef'd enums, which it refers to as a constant, but can call it function arguments and the like. Example:
enum someLongNameThatTheCLibraryUses { A, B, }
Currently, I should refer to it like this:
someLongNameThatTheCLibraryUses.A;
But I would prefer:
A;
I could do this:
alias someLongNameThatTheCLibraryUses a; aA;
But I do not want to do this in the library module, so I would have to do it where it was used, which would be unpleasant.
Is there any way to do this?
source share