RE: [PHP-DEV] Extensions calling C++
| From: | John Keiser | Date: | Sun, 09 Jul 2000 23:13:25 +0000 |
| Subject: | RE: [PHP-DEV] Extensions calling C++ | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-23971@lists.php.net to get a copy of this message | ||
> From: Sascha Schumann [mailto:sascha@schumann.cx]
>
> On Mon, 10 Jul 2000, Zeev Suraski wrote:
>
> > That there are quite
> > a few examples to people/projects employing this style (MFC &
> Stingray, to
> > name a couple of huge ones); And that quite frankly, I don't
> care, since
> > it looks nicer and makes the code flow significantly better.
> IMHO, having
> > macros without parentheses that cause side effects inside code, looks
> > almost as ugly as #ifdef preprocessor directives and the likes.
> It breaks
> > the code flow.
>
> I replied that this argument might be reasonable for macros which are
> similar to inline functions, but that it is not extensible to linkage
> declarators.
>
> Additionally, the foundation of today's C development (namely ISO C,
> POSIX, SUS) does not use the controversial notation, neither the
> standards, the rationales nor the examples thereof.
>
I would like to add to this debate for those who are interested that
Netscape, in their NSPR module, does not have parens in PR_BEGIN_EXTERN_C or
PR_END_EXTERN_C.
--John