You can write a wrapper function with the same name as the constructor/type, as in

1
2
3
4
5
6
7
8
9
10
type Test(a: int, b: int) = (* ... *)


let Test a b = new Test(a, b)


let test() =
    let t1 = new Test(1, 2)
    let t2 = (Test 1) 2    
    ()
By on 8/31/2009 7:13 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