Deprecate Obj.truncate and bootstrap.

master
Stephen Dolan 2019-03-04 17:31:38 +00:00
parent 18edce3b5f
commit 466d3bcc84
4 changed files with 3 additions and 2 deletions

View File

@ -100,8 +100,8 @@ Working version
### Runtime system:
- #1725: Deprecate Obj.set_tag
(Stephen Dolan, review by Gabriel Scherer and Damien Doligez)
- #1725, #2279: Deprecate Obj.set_tag and Obj.truncate
(Stephen Dolan, review by Gabriel Scherer, Damien Doligez and Xavier Leroy)
* #2240: Constify "identifier" in struct custom_operations
(Cedric Cellier, review by Xavier Leroy)

Binary file not shown.

Binary file not shown.

View File

@ -63,6 +63,7 @@ val [@inline always] set_double_field : t -> int -> float -> unit
external new_block : int -> int -> t = "caml_obj_block"
external dup : t -> t = "caml_obj_dup"
external truncate : t -> int -> unit = "caml_obj_truncate"
[@@ocaml.deprecated]
external add_offset : t -> Int32.t -> t = "caml_obj_add_offset"
(* @since 3.12.0 *)
external with_tag : int -> t -> t = "caml_obj_with_tag"