[Mono-list] PInvoke Conventions
Wed, 18 Jul 2001 14:24:00 -0400
Bob Salita wrote:
> Though some required action by ECMA.
How can I help? By the way, I took the liberty of forwarding on the
original e-mail from Rhys to the ECMA TC39 TG3 committee.
Jay Freeman wrote:
> That's the entire point of this thread. In that case, instead of "int",
> "long" would be used. It is a matter of whether or not that change is
> to be done by entirely different sets of code that come with the runtime
> (one for 32/32, one for 32/64, and one for 64/64, and one for whatever
> else), or by some other means.
> Personally, I don't see anything wrong with adding a new attribute
> to Mono to help with this scenario.
That's not how I read this thread. There is a desire to be able to code a
single C# source that will work portably across CLI implementations with 32
and 64 bit platforms. My example was to call "system".
Because the proposal will do "upgrade" conversions when necessary, input
parameters to C will work fine. What remains is output parameters, which
(except for unsafe code and references) essentially reduces to a single
case: output parameters.
- Sam Ruby