Meaning of "Windows: not implemented" in the Unix module?

The Unix module does not “implement” functions like Unix.fork. It makes sense, but does it mean the Unix module offers a different interface on Windows or is an exception is raised when the function is called. If an exception is raised, which one is it?

1 Like

From what I found in the OCaml sources, unsupported functions like Unix.fork raise an Invalid_argument _ exception.

Exactly, one advantage of this approach is that if you have a bit of deadcode it will still build, like if you’re using if Sys.win32 then x else Unix.fork