Suggestions
Jonathan Coxhead
jonathan at doves.demon.co.uk
Thu Apr 27 20:03:29 BST 2000
| I see no reason to encourage people to write C code that
| would work with stdbool.h and be valid C++ code, except for the
| fact that it uses the OSLib bool.
It's not a question of encouraging people, is a question of
providing continuity of functionality. In C89, "bool" has no special
status---it's just an identifier, and it's the one we happen to use
in OSLib to represent boolean values in the operating system. A
library client who is using C may have no reason to change to C99 or
C++, and there is no reason to break their code, or even to make them
flip a special switch ("compatibility mode"). It would just be an
annoyance, with no corresponding gain.
If and when they make the change to C++ (or C99, if ever), then
they will discover that they have a problem, and they can fix their
code at that time. But that's *their* undertaking, and we shouldn't
force it on them.
/|
o o o (_|/
/|
(_/
More information about the oslib-user
mailing list