1 (* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
8 functor UniqueId():> UNIQUE_ID =
14 val equals = Ref.equals
16 fun layout _ = Layout.empty
21 functor UnitUniqueId():> UNIQUE_ID =
30 functor IntUniqueId():> UNIQUE_ID =
34 val cur: t ref = ref 0
36 fun new(): t = (Int.inc cur; !cur)