ISO646
bearophile
bearophileHUGS at lycos.com
Mon May 3 10:52:23 PDT 2010
I have found that in standard C++ the 'or' and 'and' operators are supported.
This compiles:
#include "stdio.h"
#include "stdlib.h"
int main() {
bool a = atoi("1");
bool b = atoi("1");
bool c = atoi("0");
printf("%d\n", (a and b) or c);
}
This doesn't compile:
#include "stdio.h"
#include "stdlib.h"
int main() {
bool a = atoi("1");
bool or = true;
printf("%d\n", a && or);
}
So I have updated this:
http://d.puremagic.com/issues/show_bug.cgi?id=3847
Bye,
bearophile
More information about the Digitalmars-d
mailing list