bool or (bool a, bool b) { return a ? true : (b ? true : false); }
bool and (bool a, bool b) { return a ? (b ? true : false) : false; }
bool not (bool a) { return a ? false : true; }
Name:
Anonymous2014-04-12 13:30
I think bool as a type is worthless. All of this shit is just as intuitive using int. I think Ken even said himself you shouldn't be using one byte types unless it's a large array and you need to save space. There was a discussion about this on the old /prog/ and the consensus was that using stdbool.h was for idiots.