Raised This Month: $ Target: $400
 0% 

[question] array of booleans or integer?(optimization)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 10-15-2010 , 18:52   [question] array of booleans or integer?(optimization)
Reply With Quote #1

In my plugin i made my own variable wich stores certain flags:
for example
isAlive (int) and i do bitwise OR shifted bits (id) to set isAlive, id
the compiler gives me a tag mismatch warning every time i use if(!getBit( isAlive, id ))
so my question is shud i use an integer or bool:isAlive[33] to avoid the tag mismatch warnings.
So my question is shud i use an integer or an array of booleans?
__________________
okay

Last edited by ARES[ro]; 10-15-2010 at 19:12.
ARES[ro] is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode