Currently enums that are part of classes, such as
class MyClass
{
enum SomeEnumType
{
enum1,
enum2
};
...
};
are in wxLua as just "wx.enum1". I propose that it be changed to
"wx.MyClass_enum1" where we throw away the enum name, but keep the
class name. This way we unclutter the global wx namespace with
seemingly arbitrary enum values which should logically tie them more
closely to the class that they actually belong to and are used with. I
think that to go as far as calling the enums
"wx.MyClass_SomeEnumType_enum1" is probably too much and I don't think
we'll run into to problems by not bothering to implement that since
C/C++ doesn't enforce you to use the enum name anyway.
Anyone have any concerns about this change?
Regards,
John Labenski
|