[Issue 3847] To avoid a C code bug
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 3 10:45:19 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3847
--- Comment #4 from bearophile_hugs at eml.cc 2010-05-03 10:45:16 PDT ---
and, or operators exist in C++:
http://en.wikipedia.org/wiki/Iso646.h
This C++ code 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);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list