Tom
Tom

Reputation: 673

Working with "SML of new jersey"

I download "SML of new jersey" for windows vista.

I work on ML file which call "a.ml" in libary c.

Now I want to load all the commands in the file to the interpter, but I don't succsses.

I tried (use "c:\a.ml");

Thank you for your help.

Upvotes: 1

Views: 417

Answers (1)

sepp2k
sepp2k

Reputation: 370162

The \a in the string is interpreted as an escape sequence (specifying the bell character) - not a backslash followed by an a. You need to escape the backslash with another backslash for it to be interpreted as a literal backslash. I.e.:

use "c:\\a.ml";

You can also use forward slashes instead of backslashes to avoid having to escape anything.

Also note that if you invoke the interpreter from within the directory the ml file is in, you don't need to specify a directory at all, i.e. use "a.ml"; will do in that case.

Upvotes: 2

Related Questions