How to import from another file in SML, with a path relative to the importer?
问题 I'm using SML/NJ, and I need to use a set of functions that are in a certain file f1.sml inside another file f2.sml . However, I'm not running f2.sml directly, rather, I'm importing it from somewhere else. If I use the use command in f2.sml with the path to f1.sml relative to f2.sml perspective, by the time I import f2.sml , it will look for the supplied path from the running script perspective. I cannot use absolute paths, and I'd like not to merge the two files contents. Sorry if this is a