Sam Steingold <[EMAIL PROTECTED]> writes:

> c++ is stricter, so if the code can be compiled with c++ it is probably
> safer.

That doesn't match my experience.  To make C code work with C++, I
often have to introduce casts (e.g., to convert void * to char *, or
to convert one integer type to another).  These casts reduce
reliability, since they can mask real problems when they are done
incorrectly.  As a general rule I therefore prefer C code to have as
few casts as C allows.

I don't use C++, so I'll need your help here.  Is there some simple
way that we can work around this in the regex code, without having to
make wholesale changes?  For example, can we surround all the code
with extern "C" { ... } when compiling with C++?


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to