Advertisement

is there a difference between bool and BOOL?

Started by April 25, 2000 10:34 PM
14 comments, last by Possibility 24 years, 7 months ago
But data unalignment is not neccessarily the same as accessing a single byte. Data alignment is a problem when reading in a variable that will span an address ''bank''. A byte will never do that.

I don''t know exactly what the Alpha does (I know data alignment throws an exception, but I wouldn''t think it is the same problem as reading a single byte), but how many people support the Alpha?

Just make sure you don''t mix the two bool types. I''m trying to think of a way to fix a problem in my current contract because the programmers were passing the address of a BOOL, but the function accepted and treated it as a bool (idiots). Big mess that touches about every file in the project.

Rock
Data alignment shouldn''t be a problem if you''re using a reasonably up to date compiler, with the proper options it should so data alignment on the variables automaticly. I know vc++ 5 & 6 do this and gcc for linux does.
Advertisement
Ya wanna know what? I use "bool" because i like that blue color it turns .
NOTHING MATTERS BUT THE COLORS!!

THE COLORS!!!

if you define BOOL foo, you cannot do this: if (foo==true)
if you define BOOL foo, you can only do this:

if (foo==TRUE)
Zipster, that''s one of my reason for using bool too!

bool rulez!
"after many years of singularity, i'm still searching on the event horizon"

This topic is closed to new replies.

Advertisement