[Mono-gc-list] GC and multiple inheritance as in C++

David Jeske jeske at willowmail.com
Thu Jun 12 13:50:56 EDT 2008


AFAIK, you don't need C++ MI to have a pointer to something inside an object
body. This can happen if you take a ref of any instance data in C#.

http://www.java2s.com/Code/CSharp/Language-Basics/CRefandOutParameters.htm

-- Juro Jon wrote:
> Hello, I have a question concerning implementation of multiple inheritance in
> CIL. For a C++ MI object, a pointer can points to inside the object body
> instead of the its head. eg.
> struct A : B, C { };  C* c = new A;
> While Boehm GC detects this kind of reference, is it a supported feature of
> Mono? If not, what is the suggested way to implement it (eg. what is the
> C++/CLI way) ?


More information about the Mono-gc-list mailing list