I know this question , but it seems the crawler is satisfied with the answer to another question (how to overload the constructor)
I have a class that acts as an extended memoizer around a mutable class, so that I can treat it as immutable from the outside:
type Wrapper(args) = let tool = new MutableTool() tool.Init(args) //<--"Unexpected identifier in definition" let lookupTable = //create lookup using tool here member this.Lookup(s) = //callers use lookupTable here
I cannot figure out how to call the Init method on a "tool". What am I missing?
constructor f #
Benjol
source share