<-'' is written ``:='':
| Ocaml | Revised |
|---|---|
| x.f <- y | x.f := y |
ref'' type is declared as a record type with one
field named ``val'', instead of ``contents''. The
operator ``!'' does not exist any more, and references are
assigned like the other mutables:
| Ocaml | Revised |
|---|---|
| x := !x + y | x.val := x.val + y |