[Mono-osx] NObjective and Inheritance

Rodrigo Kumpera kumpera at gmail.com
Tue Feb 10 15:05:45 EST 2009


On Tue, Feb 10, 2009 at 5:28 PM, Martin Smith <martin.smith.jr at gmail.com>wrote:

> Rodrigo:
> Are you saying that regardless of which method Eugeny uses, it will produce
> largely the same IL?  The idea here is that there NSWindow is a struct that
> takes 70% of it's methods from NSControl (and its base classes). In fact, a
> method from NSObject or NSResponder (which sit at the bottom of the
> Objective-C inheritance chains) would get duplicated across the entire
> inheritance heirarchy (potentially hundreds or a few thousand times).  I'm
> not 100% sure here.  Are you saying regardless of which solution is used,
> the generated dlls should be roughly the same size?
>
> I just want to make sure that I'm understanding everything.
>
> Thanks!
> Martin
>

What I'm saying is that valuetype inheritance doesn't make any sense at all.
Doing so goes against the CLR type system and is doomed to fail.

Encoding a OO type hierarchy using valuetypes is plain wrong.

Let me restate that. It's not a bug in mono, the CLR is designed this way
and there is no compeling reason to implement such broken behavior.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20090210/c12377a7/attachment.html 


More information about the Mono-osx mailing list