Re: Enums/flags as objects?
| From: | Christian Weiske | Date: | Tue, 10 Aug 2004 08:24:50 +0000 |
| Subject: | Re: Enums/flags as objects? | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-704@lists.php.net to get a copy of this message | ||
Hi
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Do you think wrapping enums/flags as objects has advantages? PyGtk 2.3.x seems to do it this way. I think it would be better to have the normal int types. For the backtracking, a class/function could be made which could be called when the programmer needs the name explicitly. The function returns the name to a given integer. Additionally we'd needa) different functions for each enum type $enumresolv->getCursorName( 4); b) one function which accepts a "enum type group" as parameter getEnumName( 4, ENUM_CURSOR); Regards/MfG, Christian Weiske -- XMMS is playing now:
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc