Suggestions
David Bryan
D.J.Bryan at cranfield.ac.uk
Thu Apr 27 19:44:17 BST 2000
In message <200004271739.KAA04898 at purple.trimedia.sv.sc.philips.com>
"Jonathan Coxhead" <jonathan at doves.demon.co.uk> wrote:
> There are 2 "natural laws" we should attempt to respect:
>
> ---if |__cplusplus| is defined, |bool| is a keyword, and we
> shouldn't touch it or rely on it anywhere.
>
> ---in C99, |bool| is defined in <stdbool.h>, and we should
> allow library users to use that, or not, as they see fit. In
> practical terms, this means we shouldn't touch it or rely on it
> anywhere in this case as well. There are no C99 compilers for
> RISC O S (or anything) else yet, so we can make this change
> safely.
>
> In other cases, we should do what we do now, to be compatible.
I feel that any compatibility should be off by default, with the
user explicitly turning it on. It's not particularly onerous to
change code from using bool to osbool, or whatever. This would be
simpler. And 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.
--
David Bryan
More information about the oslib-user
mailing list