I think I understand now why it is the way it is.

It seems you can only pass the address of a variable as an argument to a function that takes a nativeptr<_> and it seems like indexers on CLR arrays are overloaded to act that way so the following seems to work.

1
2
3
4
let pfunc (p : nativeptr<int>) = 
    p

pfunc &&num
By on 2/27/2010 12:12 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper