4.3 Examining the interactive context: the browser tools

4.3.1 Inspecting values from the system browser

As we have already seen in Chapter 1, one use of this is to invoke an inspector on any value in the environment. To see more clearly the functions of the system browser, select Tools > System Browser from any MLWorks tool.

Figure 4.3 The MLWorks system browser.

The system browser shows all the built-in values that exist at top level in MLWorks: structures, types, values, and so on. A structure contains a list of further values with their types, and so on; you can use the system browser to look inside a structure. Click on the Shell structure to select it, and click again to expand it.

Figure 4.4 The system browser showing the contents of structure Shell.

The graph expands to show the types, exceptions and values specified in the Shell structure.

You can remove different kinds of ML entity from the system browser window using the View > Filters dialog. The dialog contains options for showing and hiding structures, types, exceptions, variables, and so on.

At the top of the system browser is a Selection box, which contains the identifier of whatever value is currently selected. (A value is selected by clicking.) If the value is inside a structure, this window contains the full qualified name of the value. The contents of the window can be cut and pasted (into a listener, for example), either using Edit > Copy, or with the mouse.


MLWorks User Guide (UNIX version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker