Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.20 KB | None | 0 0
  1. module New_id() : sig
  2.   type t = private int
  3.   val t : int -> t
  4.   val int : t -> int
  5. end = struct
  6.   type t = int
  7.   let t x = x
  8.   let int x = x
  9.  end
  10.  
  11. module Id1 = New_id()
  12. module Id2 = New_id()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement