digitalmars.D - ISO646
- bearophile (22/22) May 03 2010 I have found that in standard C++ the 'or' and 'and' operators are suppo...
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
May 03 2010