Arrays and enums
#1

pawn Код:
enum e_MyEnum
{
    Data1,
    Data2
};

new
    enumVar[ e_MyEnum ]
;
Vs.

pawn Код:
new
    enumVar[ 2 ]
;
Memory-wise: How less efficient is the first method in comparison with the second method?
Reply
#2

Oh look, another trivial 'efficiency thread'. Who cares? Optimize things where optimizations are needed.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Oh look, another trivial 'efficiency thread'. Who cares? Optimize things where optimizations are needed.
My curiosity cares. Should've posted this in Little Coding Questions instead of making a thread, though.

Quote:
Originally Posted by ******
Посмотреть сообщение
The fact that you even need to ask this means that you have not understood enums in the slightest.
Welp, better read about it in the pawn-lang then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)