0
我是SML/programming/emacs /所有東西的新手,當我從coursera課開始第一個作業時,我有關於此錯誤的舊故事:SML未捕獲的異常「使用失敗:Io:openIn失敗...」
[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,並且自2天前安裝Emacs和SML/NJ後,我沒有驗證SML模式是否正常工作。
最後的代碼我寫的 - 因爲它並不重要代碼,我也有同樣的錯誤,但無論如何並不重要 - 是這樣的:
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;
如果您打開Windows *命令*提示符[或PowerShell會話],導航到'is_older.sml'的位置並鍵入命令「sml」,會發生什麼情況?如果在Emacs中輸入「M-x run-sml」,會發生什麼情況? – 2014-10-17 16:52:55