From: Lyle Johnson Date: 2002-06-13T23:51:24+09:00 Subject: Re: SWIG questions > What is the status of the C++ namespace support for the the > Ruby engine of SWIG? > > More specifically: is it possible to tell SWIG to wrap all > classes in a header file, even if it contains namespaces? Yes, this is the default behavior for SWIG 1.3.12. This section from the SWIG documentation: http://www.swig.org/Doc1.3/SWIGPlus.html#n24 describes how SWIG's namespace support works. As noted, the default behavior is also to "flatten" namespaces in the target language. > I was surprised to notice that SWIG generates > singleton setter and getter methods for a namespace. > Is there a reason for that? I don't know what you're talking about here. Could you be more specific?