It seems you need the ref type, which is defined in the F# core libraries. Example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module B =

    let state = ref 0

module A =

    let setTo i = B.state := i
  
module C =
    open B

    let read() = !state
    
    let clear() = state := 0
By on 4/22/2009 4:04 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