I know this isn't quite what your asking, but I've seen a lot of code where they use a function to call the .NET constructor. I believe you could get a similar effect to what your trying to achieve:

1
let p3 x y z = new Point3D(x,y,z)

Thanks,
Robert

By on 10/5/2008 6:42 AM ()

Just seen your other post, looks like your doing something like this anyway ;)

Cheers,
Rob

By on 10/5/2008 6:44 AM ()

Hi Rob,

I actually prefer this to the type-abbreviation method (purely on a syntactic level) since you can inline the function and then use both ints and floats.

thanks,

Danny

By on 10/5/2008 8:59 AM ()
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