请问,为何出错?
C:\ocaml-compiler>ocaml a.ml
File "a.ml", line 1, characters 8-10:
Error: This expression has type int
This is not a function; it cannot be applied.
但是对于b.ml,又是正确的。如下
let a = 10;;
print_int a;;
C:\ocaml-compiler>ocaml a.ml
10
那么,对于放在文件里面的ocaml代码,如何写??
感谢。
文件里,多行的ocaml代码,到底怎么写?
1413

被折叠的 条评论
为什么被折叠?



