How does it work compiling multiple files in Standard-ML? I have 2 files.
file1.sml:
(* file1.sml *)
datatype fruit = Orange | Apple | None
And file2.sml:
(* file2.sml *)
datatype composite = Null | Some of fruit
So as you can see file2.sml is using stuff from file1.sml. How can I make this thing compile?
I am using mosmlc.exe and when compiling mosmlc file2.sml (as for this question):
(* file2.sml *)
use "file1.sml";
datatype composite = Null | Some of fruit
I get:
! use "file1.sml";
! ^^^
! Syntax error.
So, how to deal with multiple files?