Next Previous Up Top Contents Index

2.3 Basic use of the MLWorks project system

2.3.6 Loading code into the environment

So far you have compiled source files into object files. No compiled objects have been loaded into the interactive environment; for instance, if you type the following at a listener prompt:

MLWorks> answer;

it generates an Unbound value error, even though sumxy.sml assigns a value to answer.

To load the compiled targets into the listener, select Project > Load Targets. This loads sumxy.mo into the listener, and makes answer available in the interactive environment. Notice, however, that the values of x, y and z are not available. To make values defined in files not explicitly required at the top-level of the project, you must select the relevant file from the file list, and choose Project > Load Selection. For example, selecting zval and choosing to load the selection makes z available in the interactive context.


MLWorks User Guide version 2.0 for UNIX/Linux - 31 Jul 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker