From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruce
Markham
Sent: 20 November 2007 04:01 AM
To: sharpos-developers@lists.sourceforge.net
Subject: Re: [SharpOS Developers] RuntimeCop and Mono Interop

 

 

On Nov 19, 2007 4:50 AM, Jonathan Chayce Dickinson <[EMAIL PROTECTED]>
wrote:

Hey Bruce,

 

Can you put those stubs up somewhere? I will be happy to start coding them
(the ones that we don't need to discuss ATM at least).

 

Regards,

Jonathan Chayce Dickinson

[...]

 

While I think the AOT doesn't have to care, I know the C# compiler does. For
one thing, byref is 'safe', pointers are not, (and neither are CLS
Compliant, but thats neither here nor there.) I really need DarxKies' input
on how the AOT handles these things, (and how we want it to in the future),
before we can start fleshing out any code auto-generated by my tool. 

[Jonathan Dickinson] 

Excuse the ignorance. But doesn't IL have a unsafe 'keyword'? If a method is
safe I think you could safely assume that it's only using ref's, but if it
unsafe then you could assume all are pointers. Or you could just ditch the
whole moot point, because ref is a alias for a pointer. The compiler only
checks that you don't cast it to some obscure type such as:

 

Static Float * Foo(int * bar)

{

  Void * ding = (void *) bar;

  Float * ret = (float *) ding;

  Return ret;

}

 

That wouldn't be possible with the ref keyword, so as long as WE are
competent, I don't think it really matters if they are REF or if they are
pointers. All that matters is that the AOT flags it as verifiable code.

 

[...]

 

Once I do commit the stubs, I will probably put the whole of them in
/Kernel/MonoInterop/ , and as we decide things need to be moved into
/Kernel/Core/Runtime/ , we'll move them over. I'm not sure yet how we'll get
the AOT to track down these methods, but I can't imagine it being a road
block. 

 -Bruce / illuminus

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
SharpOS-Developers mailing list
SharpOS-Developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sharpos-developers

Reply via email to