Re: Compiling C++ modules

Jan Engelhardt
2006-04-25T09:04:00Z

>
> I think it's easy to show that the equivalent C++ code would be shorter,
> faster, and safer.
>
I doubt that. Mixing C and C++ leads to C++ code being slightly bigger than
intended. In C, you can have

struct ops *p = void_ptr;

In C++,

struct ops *p = (struct ops *)void_ptr

or even

struct ops *p = static_cast<struct ops *>(void_ptr);

And void*s are used a lot.

Jan Engelhardt
--