[Mono-devel-list] mono runtime type and function definitions

Paolo Molaro lupus at ximian.com
Sat Feb 21 11:41:20 EST 2004


On 02/20/04 Urs Muff wrote:
> Call me crazy, but I would love to see mono header type and function
> definitions to use C++ namespaces, optionally.  I know that mono is compiled
> in C and not C++ right now.
> 
> The reason for asking for this is simple, I'm trying to include the mono
> runtime into another project and have to include conflicting definitions.
> (The specific case we are talking about is the Foundation Framework of
> Apple's Cocoa, and therefore I cannot modify those headers).

Can you detail what are the conflicts? There could be some namespace
pollution in the mono headers which we might need to cleanup. Or
the issues could be worked around by including in a file either mono or
the Cocoa stuff, if possible.

> I don't know how feasible it would be to switch to C++, the name mangling
> will be different, I'm not implying to use other C++ features.

Compiling mono with a C++ compiler is not an option, though the header
files are supposed to be used from C++ and obj-C just fine (or we have a
bug and we need to fix it). I plan to take a few weeks before the
mono 1.0 release to cleanup and provide a better and more supportable mono
embedding interface, so let me know of any issues.

Thanks.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list