What's wrong with:

1
2
3
4
5
6
7
type XPPClass = 
   val name : string
   val extends : string option
   val implements : string list
   new( n, e, i) = { name = n; extends = e; implements = i }</B><B>

let c = XPPClass( </B>"Foo"<B>, Some </B>"FooBase"<B>, [</B>"IFoo"<B>] )

You'll need to use an explict c'tor, but you still have positional arguments. (I think the explict c'tor is quite a bit nicer as well.)

thanks,
m

By on 1/15/2009 2:44 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