|
4 | 4 |
|
5 | 5 | type t = Primitive_object_extern.t |
6 | 6 |
|
7 | | -let magic = Primitive_object_extern.magic |
| 7 | +external magic: 'a => 'b = "%identity" |
8 | 8 |
|
9 | 9 | @deprecated("Do not use directly. This will be removed in v13") |
10 | | -let repr = Primitive_object_extern.repr |
| 10 | +external repr: 'a => t = "%identity" |
11 | 11 |
|
12 | 12 | @deprecated("Do not use directly. This will be removed in v13") |
13 | | -let obj = Primitive_object_extern.obj |
| 13 | +external obj: t => 'a = "%identity" |
14 | 14 |
|
15 | 15 | @deprecated("Do not use directly. This will be removed in v13") |
16 | | -let tag = Primitive_object_extern.tag |
| 16 | +external tag: t => int = "%obj_tag" |
17 | 17 |
|
18 | 18 | @deprecated("Do not use directly. This will be removed in v13") |
19 | | -let size = Primitive_object_extern.size |
| 19 | +external size: t => int = "%obj_size" |
20 | 20 |
|
21 | 21 | @deprecated("Do not use directly. This will be removed in v13") |
22 | | -let field = Primitive_object_extern.getField |
| 22 | +external getField: (t, 'a) => t = "%obj_get_field" |
23 | 23 |
|
24 | 24 | @deprecated("Do not use directly. This will be removed in v13") |
25 | | -let set_field = Primitive_object_extern.setField |
| 25 | +external setField: (t, 'a, t) => unit = "%obj_set_field" |
26 | 26 |
|
27 | 27 | @deprecated("Do not use directly. This will be removed in v13") |
28 | | -let dup = Primitive_object_extern.dup |
| 28 | +external dup: t => t = "%obj_dup" |
29 | 29 |
|
30 | | -@deprecated("Do not use directly. This will be removed in v13") |
31 | | -let update_dummy = Primitive_object_extern.updateDummy |
| 30 | +@deprecated("Do not use directly. This will be removed in v13") @scope("Object") |
| 31 | +external updateDummy: (t, t) => unit = "assign" |
0 commit comments