Which is better? Enum or variables.
#9

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
But seriously, enums are way more neat and organized. Sometimes I only create an enum for 1 or 2 variables, haha.
Quote:
Originally Posted by ******
Посмотреть сообщение
Then you're doing it just as badly as newbienoob.
I sometimes use enums for few vars.

EG,
pawn Код:
enum E_SOME_ENUM
{
    e_SOME_VAR,
    e_SOME_OTHER_VAR,
    bool: e_SOME_BOOL_VAR
}
new SomeVar[E_SOME_ENUM]
This is a bad idea? If so why?

EDIT: I know this doesn't actually make the code more manageable, but for some reason i prefer using enums than several vars. If this is bad practice I'd love to know, so i can alter my code accordingly (if needed)
Reply


Messages In This Thread
Which is better? Enum or variables. - by newbienoob - 23.04.2013, 05:36
Re: Which is better? Enum or variables. - by Vince - 23.04.2013, 05:41
Re: Which is better? Enum or variables. - by newbienoob - 23.04.2013, 05:50
Re: Which is better? Enum or variables. - by DaTa[X] - 23.04.2013, 06:04
Re: Which is better? Enum or variables. - by Knappen - 23.04.2013, 06:05
Re: Which is better? Enum or variables. - by Scenario - 23.04.2013, 06:47
Re: Which is better? Enum or variables. - by Emmet_ - 23.04.2013, 10:11
Re: Which is better? Enum or variables. - by newbienoob - 23.04.2013, 10:20
Re: Which is better? Enum or variables. - by iggy1 - 23.04.2013, 11:08
Re: Which is better? Enum or variables. - by Emmet_ - 23.04.2013, 11:20

Forum Jump:


Users browsing this thread: 2 Guest(s)