[Mono-list] Some news about a CORBA ORB implementation for.Net framework

Dietmar Maurer dietmar@ximian.com
30 Sep 2002 11:50:25 +0200


On Mon, 2002-09-30 at 10:56, Michael Meeks wrote:
> Hi Dietmar,
> 
> On Fri, 2002-09-27 at 13:36, Dietmar Maurer wrote:
> > On Fri, 2002-09-27 at 11:13, Michael Meeks wrote:
> > > 	So, we'd implement a custom Mono object adaptor [ as do the Python &
> > > gobject-adaptor bindings ], and it'd just work. The thing is while I can
> > > explain what to do conceptually, it'd take me a long time to get into
> > > the Mono C internals - since really, that's where the mapping has to
> > > happen I think.
> > 
> > C#/Mono has that PInvoke feature, so you can simply call any C# method
> > you want from C, just like a normal C function.
> 
> 	Sure; the thing is we don't want to invoke a C method; we want to
> marshal the arguments to the C ABI, and then invoke a generic method -
> since it may well not be C at the other end of the invoke. But - yes, it
> should re-use a big chunk of the PInvoke code.

Don't understand that. PInvoke works in both directions, i.e. you can
invoke any C function for C#, or any C# function from C.

- Dietmar