SML未捕获的例外情况”;使用失败:Io:openIn在…上失败”;
我对SML/programming/emacs/所有这些东西都是新手,当我在coursera课堂上做第一个家庭作业时,我对这个错误有一个老故事:SML未捕获的例外情况”;使用失败:Io:openIn在…上失败”;,sml,Sml,我对SML/programming/emacs/所有这些东西都是新手,当我在coursera课堂上做第一个家庭作业时,我对这个错误有一个老故事: [opening is_older.sml] [use failed: Io: openIn failed on "is_older.sml", Win32TextPrimIO:openRd: failed] uncaught exception Error raised at: ../compiler/TopLevel/interac
[opening is_older.sml]
[use failed: Io: openIn failed on "is_older.sml", Win32TextPrimIO:openRd: failed]
uncaught exception Error
raised at: ../compiler/TopLevel/interact/interact.sml:24.14-24.28
我尝试了在论坛上找到的所有可能的事情,主题,比如:路径,检查sml文件的任何拼写错误的名称,编码-我放了几个代码,节省,等等。我唯一没有做的是定制Emacs,我没有验证sml模式是否正常工作,因为2天前安装了Emacs和sml/NJ
我写的最后一段代码——但无论如何都不重要,因为不管是哪段代码,我都有相同的错误——是这样的:
fun is_older ((x1,y1,z1), (x2,y2,z2)) =
if z1 < z2
then true
else
if x1 = x1 andalso y1 = y2 andalso z1 < z2
then true
else false;
fun更老((x1,y1,z1),(x2,y2,z2))=
如果z1
这听起来好像根本就没有找到文件。可能您拼错了名称,或者它位于不同的目录中?如果打开Windows命令提示符[或PowerShell会话],导航到较旧的位置。sml
并键入命令“sml”,会发生什么情况?如果在Emacs中键入M-x run sml
,会发生什么情况?
[use failed: Io: openIn failed on "is_older.sml", Win32TextPrimIO:openRd: failed]