Skip to content
Prev 16792 / 63424 Next

C/C++ namespaces

On Fri, 1 Jul 2005, Oleg Sklyar wrote:

            
It might be useful for future suggestions if you read the relevant manual 
before posting.  The developers are way ahead of you on this one.
There is no such thing as a `C namespace': the word does not appear in the 
C99 standard.
No, as R is written in C not C++.  This issue only occurs if

1) you include Rinternals.h (which was designed for C programmers), and
2) do not take notice of the warning in the `Writing R Extensions' manual
and do not define R_NO_REMAP as it suggests.

Using C++ namespaces would be of no help for C extensions to R, and we 
have already provided a solution, in a back-compatible way for both C 
and C++ programmers.