[PATCH] kconfig_compiler generated enums
Luís Pedro Coelho
luis at luispedro.org
Tue Sep 14 11:14:53 BST 2004
Hi,
I really like the
class X {
public:
enum { one, two, three ... };
};
idiom that kconfig_compiler generates, but sometimes a name for the type is
usefull. I personally write:
class X {
public:
enum type { one, two, three ... };
};
So that you can do:
X::type t = ...;
The attached patch makes kconfig_compiler use this.
Unless someone disagrees, I will commit in 48 hours.
BTW, this is not just idle speculation, I have actual code (written this
morning) which would use this if the patch is accepted.
thanks,
--
Luís Pedro Coelho
The carrot tax, see:
http://luispedro.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kmail-attach.wpOJh5
Type: text/x-diff
Size: 742 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040914/e3c5777c/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040914/e3c5777c/attachment.sig>
More information about the kde-core-devel
mailing list