Skip to content

Commit ad67d05

Browse files
committed
Comment
1 parent 4f49fdf commit ad67d05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/obj.c

+2
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ CAMLprim value caml_obj_with_tag(value new_tag_v, value arg)
155155
uintnat infix_offset = 0;
156156

157157
// This function must not raise exceptions (except asynchronous exceptions).
158+
// It behaves just like an allocation function, which has generative effects,
159+
// but not arbitrary effects. (See the [Obj_dup] case in [To_cmm].)
158160

159161
tag_t new_tag = (tag_t)Long_val(new_tag_v);
160162
#ifdef DEBUG

0 commit comments

Comments
 (0)