[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] Hspell plugin for KSpell2
From:       Michael Pyne <pynm0001 () comcast ! net>
Date:       2005-04-29 21:16:03
Message-ID: 200504291716.03410.pynm0001 () comcast ! net
[Download RAW message or body]

On Friday 29 April 2005 05:17 pm, heiko.evermann@gmx.de wrote:
> Hi Nadav,
>
> > Why? What's wrong with C++ junkies knowing that this is a C library, and
> > therefore they need to do
> >
> > extern "C" {
> > #include <hspell.h>
> > }
>
> That is a valid point. You are definitely right. It might however be useful
> to add this as a comment to the header file. Something like "if you want to
> use c++, use hspell like this:

Well I'll admit that I've never seen the big deal with making sure that C 
library headers can be included from C++ code.

The #ifdef __cplusplus construct has been supported by every C++ compiler I've 
ever used (and I started with C++ way back on DOS).

But yes, if it's such a big deal to add C++ guards, at least document it in 
the header as to what we'd have to do to include it in C++ code.

Regards,
 - Michael Pyne
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic