[PATCH] kconfig_compiler generated enums
David Faure
faure at kde.org
Tue Sep 14 12:02:15 BST 2004
On Tuesday 14 September 2004 12:14, Luís Pedro Coelho wrote:
> 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 = ...;
Excellent idea. I missed this too.
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list