[Mono-osx] NObjective and Inheritance

Rodrigo Kumpera kumpera at gmail.com
Mon Feb 9 11:30:39 EST 2009

On Mon, Feb 9, 2009 at 12:39 PM, Eugeny Grishul <eugeny.grishul at gmail.com>wrote:

> 2) Current Mono VES implementation have a bug related ot value type
> inheritance and to workaround it don't allow objc proxies to be boxed.
> Following code will crash JIT:

This is not a bug in mono. ValueTypes aren't allowed to inherit to anything
but System.Valuetype or System.Enum.
Code that tries to bend that is too broken to be bothered with. I could list
a few reasons for it:

-VT inheritance It unsound with CLR 2.0 and there is little hope this will
change. This means that safe code that
uses broken types can't be verified as safe.

-It doesn't make much sense to use it when composition is available as
layout wise it will produce the same result.

Depending on bugs of existing CLR implementation that allow such thing is
not an excuse to blame on mono for not
supporting it.

Mono won't support such thing because it's the wrong way to solve any
problem it's trying to.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20090209/25295060/attachment-0001.html 

More information about the Mono-osx mailing list