On Mar 19 2013, Tobias Burnus wrote:
Am 19.03.2013 13:15, schrieb Janne Blomqvist:
now that the Fortran frontend is C++ we can use the primitive bool
type instead of inventing our own.
Well, C99's "bool" (_Bool) was already used before. ...
Er, that is making a serious mistake or, at least, running the risk of
one.  C++'s bool and C99's _Bool are NOT compatible types.  The UK tried
to get _Bool either made compatible with C++ or (preferably) dropped, but
failed in both.

Now, in disciplined code that does not pass such objects between C and
C++, you won't see the differences.  But, if EITHER assertion fails,
there are some very nasty gotchas.


Regards,
Nick Maclaren.

Reply via email to