| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This model has a `foo-sig.sml' file but no `foo.sig' file. Thus, it combines the advangages of the "full" model with the disadvantages of the "simple" model.
First, `foo-sig.sml' is compiled in the enviroment in which `foo.sig' file would have been compiled if it existed; see plus sign. Then `foo.sml' is compiled in an environment comprising all the units on its `Dependencies' line (ignoring a `+' separator if it exists) plus the definitions in `foo-sig.sml'.
Use the "hybrid" model
mosmlc assumes that all
`.sig' files belong to the "native" model whose `.sig'
syntax won't accept the SML/NJ paradigm.
You also still need to write down the dependencies between the units you import by hand. If anyone writes a tool that automatically creates a `Dependencies' file for Mosmake using dependency information from SML/NJ's Compilation Manager, I'd love to hear about it.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |