Raised This Month: $ Target: $400
 0% 

Whats the advatage of using bool`s over int ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 04-20-2004 , 12:03   Whats the advatage of using bool`s over int ?
Reply With Quote #1

Im wondering whats the advatage of using bools instead of int`s ?

Normaly i just int`s with the value 0 or 1. But iv noticed some plugins uses bool`s. ( wich has true or false )

Im just wondering why? It seems to be to be 2 ways of doing the same thing, but if a bool stores 4 chars to save the same info as my int. Witch only has to store 0/1 it seems ints should be better.

Im just wondering.
EKS is offline
 



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