[Mono-devel-list] Callling convention for interop call-backs
Miguel de Icaza
miguel at ximian.com
Wed Jan 21 15:05:55 EST 2004
> > It is a breaking change. But seemed to us best way is to extend mcs to
> > support cdecl callback and change mono to use stdcall as default for winapi
> > on win32. This will force all P/Invoke done with mono to change to use cdecl
> > explicitly. But the benefit is final assemeblies working without any hitch
> > or changes across linux/win32. There will also be no need of IL hacks.
> You have *my* vote.
> Instead of just supporting cdecl, why not add an attribute that
> allows to specify any of the calling conventions for delegates?
We can certainly use MCS for experimentation to get this going.
If there are people interested in this, please cook up a few approaches,
we can try them out, and submit to ECMA.
More information about the Mono-devel-list