GCC: accessing exceptiond from C?

Kai Henningsen kaih@khms.westfalen.de
Sat Mar 30 11:28:00 GMT 2002


per@bothner.com (Per Bothner)  wrote on 30.03.02 in <3CA5F417.4030103@bothner.com>:

> Kai Henningsen wrote:
> > it's rather hard to reasonably integrate that stuff with C without
> > compiler support - and I'd rather avoid full-blown C++.
>
> You don't need "full-blown C++".  It is perfectly ok to use
> G++ as a "C with exceptions" compiler or a "better C"
> compiler.  Many people do that.

That *is* "full blown C++" - i.e., once I do that, every difference  
between C++ and C automatically applies to my program.

Such as, for example, the fact that I now need to cast void * pointers.  
(Which, frankly, I consider one of C++'s worse ideas.)

MfG Kai



More information about the Gcc mailing list