![]() |
enum usage question
Hi everybody, this is my first post :) I have a question that someone here can probably answer pretty easily. Here it is:
I was looking at some of the Wasabi 3 SDK documentation, and I see that enumeration is used quite a lot. In a couple places I see enumerations that appear to assign a string to a value being enumerated. An example I came across in attribute.h: namespace AttributeType { enum { NONE = 0, INT = 'int', STRING = 'str', BOOL = 'bool', FLOAT = 'flot', }; }; I understand the enumeration of NONE = 0, but what is happening with the other ones like INT = 'int'? I don't understand how this is used. I'd appreciate/love you for any explanations of this syntax...I searched around on the web (including the MSDN library), but I don't see this explained anywhere. Thanks in advance for any responses :D |
code: --Brennan |
| All times are GMT. The time now is 07:18. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.