(* warning: calling reset() may jeopardize uniqueness of stringrefs! *)
fun reset () = ( counter := 1 ; strings := [] )
fun new (s : string) = !counter before ( strings := (!counter, s) :: !strings ; counter := !counter + 1 )
(* warning: calling reset() may jeopardize uniqueness of stringrefs! *)
fun reset () = ( counter := 1 ; strings := [] )
fun new (s : string) = !counter before ( strings := (!counter, s) :: !strings ; counter := !counter + 1 )