We'll make a sample program a little bit larger, and then we'll compile it to a file.
format with a call to message-dialog.(message-dialog (format nil "Hello, ~A!" my-name))
message-dialog", a message appears in the bottom of the Fred window. This message area is called the mini-buffer. When you type an open-parenthesis followed by the name of a function followed by a space, Fred displays the argument list of the function in the mini-buffer.
If you want to see what the function message-dialog does, you can get the documentation string for it. To do this, select the text "message-dialog" in the window, or place the cursor inside the text, and press Control-x Control-d. This is the MCL command for bringing up the documentation window.
Figure 2-7 The documentation window
(defun say-hello ()
(let ((my-name (get-string-from-user
"Please type in your name.")))
(message-dialog
(format nil "Hello, ~A!" my-name))))
(say-hello) in the Listener and press Return.
quit function from the Listener.
(say-hello) in the Listener and press Return.
say-hello" and press Option-Period. MCL will open the source code file containing the definition (if it is not already open) and it will scroll to the definition.
Generated with Harlequin WebMaker