]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/src/common/marks.ml
- the connections between the intermediate language and the "bag"
[helm.git] / helm / software / lambda-delta / src / common / marks.ml
index a9b78762a97942868ebcf454e341ced733f3bbd9..fba716b37494560fc7d9063e437a821191fafff9 100644 (file)
 
 module E = Entity
 
+let location = ref 0
+
 (* interface functions ******************************************************)
 
-let new_location =
-   let location = ref 0 in
-   fun () -> incr location; !location
+let locations () = !location
+
+let new_location () =
+   incr location; !location
 
 let new_mark () =
    E.Mark (new_location ())