How do i define a private static method in a class in f#? when i try to attach a private modifier it complains.
+8
A:
Here's a short script that defines and uses a private static member:
type MyClass =
static member private MyPrivateMember() = printfn "MyPrivateMember()"
static member MyMember() = MyClass.MyPrivateMember()
MyClass.MyMember() // MyPrivateMember()
Ray Vernagus
2009-06-20 02:47:07