Raised This Month: $ Target: $400
 0% 

Whats the advatage of using bool`s over int ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-20-2004 , 12:07  
Reply With Quote #1

Well, I guess there isn't much difference (both logically work the same), but I persoanlly prefer Bool over INT in such cases because an Int is ussually more bytes of memory than a bool variable..

Also, I personally like bool's 'cause my IDE highlights true/false but not 1/0.. so for me, it is visually easier to read!!

Edit: bool is not storing 4 or 5 chars, it is storing one byte (or cell), and the word True or False is a symbol, not a string...
xeroblood is offline
Send a message via MSN to xeroblood
Reply



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:15.


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