Compiling a multiple file project in ocaml
When we compile a multiple file project in ocaml, we can use the following command:
ocamlopt -o progprog eaBase.ml eaPoor.ml
If we are using the class or module in the first file in the second, then we need to open the module in the second file. After that inheritance works fine.
More about the ocaml tools here
ocamlopt -o progprog eaBase.ml eaPoor.ml
If we are using the class or module in the first file in the second, then we need to open the module in the second file. After that inheritance works fine.
More about the ocaml tools here