You must initialize all record fields explicitly, however you can create a Static Factory method that will give you a fresh instance.

#light

type Info =
{
mutable A:uint64
mutable B:double
}
static member Create() = { A = 0UL; B = 0.0 }

let instanceOfInfo = Info.Create()

By on 6/27/2008 12:27 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