Closed mlemerre closed 4 months ago
This does not seem correct. The returned integer is not an OCaml integer, so I doubt that we can just drop the attribute.
OCaml wraps the function in that case, otherwise there would be a bug in the ocaml compiler.
See the compiler explorer for differences between compiling with/without a constrained signature.
Another possible fix is to expose the external
in the mli
directly. I'd rather hide the implementation though.
Actually, the function is used only for testing; moreover, changing the implementation would retain source-level compatibility. I think exposing the external would be safe.
Done.
I have the following error
I fixed those concerning the specialise tag (check that it is OK) but I am not sure how to fix those as they seem OK to me... I'm open for ideas!