Creating enums
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
No, it is not required but it avoids confusion. It is customary to write constants in all upper case and the E_ prefix is used to denote that it's part of an enumerator. It is important to note that enum specifiers are not variables; in a sense, it is a structured list of definitions.
Thank you.
The enum itsels does not contain variables but when I do something like:
PHP код:
new playerInfo[enum
Then playerInfo will contain a set of variables as we defined in the enum, am I right?
Reply


Messages In This Thread
Creating enums - by EtayJ - 13.10.2016, 14:34
Re: Creating enums - by Vince - 13.10.2016, 14:41
Re: Creating enums - by EtayJ - 13.10.2016, 14:58
Re: Creating enums - by Gotham - 13.10.2016, 15:06
Re: Creating enums - by AmigaBlizzard - 13.10.2016, 15:56
Re: Creating enums - by EtayJ - 14.10.2016, 11:37

Forum Jump:


Users browsing this thread: 1 Guest(s)