我目前正在研究真实世界的 Ocaml,但我在运行sum.ml的 OCaml“corebuild”编译版本时遇到了困难:
$ ./sum.native
1
2
3
Uncaught exception:
(Invalid_argument "Float.of_string ")
Raised at file "pervasives.ml", line 31, characters 25-45
Called from file "sum.ml", line 7, characters 44-61
Called from file "sum.ml", line 10, characters 24-46
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
谢谢你!
ocaml ×1