[Mono-list] Windows.Forms and C++

Fergus Henderson fjh@cs.mu.oz.au
Thu, 28 Nov 2002 14:16:35 +1100


On 27-Nov-2002, Sergey Chaban <serge@wildwestsoftware.com> wrote:
> > But VC++.net creates programs
> > - which consists of 100% IL-code (that you can run with mono)
> > - which consists of 100% native-code (that you can run with wine)
> > - and with consits a mix of IL-code and native-code.
> > 
> > And the last one you can _not_ run on mono. Or I am wrong?
> 
> You're right.

What about programs which consist of a mix of IL code and native code,
but which happen to never call the native code?

i.e. will it crash and burn when trying to load a mixed-code assembly,
or only when the native code is called?

The reason I ask is that the Mercury standard library is implemented
mostly in IL code, but the set_environment_variable procedure needs to
be implemented using native code, since the .NET library doesn't provide
any way of setting environment variables.  Should Mercury programs that
don't use set_environment_variable be able to run on Mono?

(Assuming any other unrelated problems are fixed, that is ;-)

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.