在我启动并执行这个很棒的程序后,我希望看到输出 val it = 2 : int
$ sml
Standard ML of New Jersey v110.74 [built: Fri Dec 7 10:09:50 2012]
- 1+1
=
=
=
但是,我只看到等于,当我在 emacs 中执行相同的程序时,我会得到相同的行为。 sml 从不打印结果。
我正在使用最新版本的 ubuntu。
最佳答案
你忘了分号。
- 1 + 1;
val it = 2 : int
关于ubuntu - 在 Ubuntu 中使用 SMLNJ 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14368539/