••• Unprocessable paragraph: \start
Home Segments Index Top Previous Next

601: Mainline

\slidefont

For example, suppose you have produced a Weight class, and all of that class's allied methods, as defined in Segment 556. Together, the Weight class and the allied methods constitute a small application.

If you decide to share the application for use by another programmer, you must execute the file-out ritual prescribed by the development environment. For the Smalltalk Express development environment, for example, you proceed as follows:

••• Unprocessable paragraph: \beginbullets \o First, activate the class-hierarchy browser, as explained in \chunkref\defineBrowser/. \o Click \click|Magnitude|, and then click \click|Weight|. You see the following: \endbullets \par C:\Phw\Onto\Smalltalk\exchange.tex •••

••• Unprocessable paragraph: \beginbullets \o Next, click \click|right| in the class column. A menu will emerge. \o Click \click|File out...|. A text-input box will emerge. \o Provide a file name, such as \code{\backslashSign/test\backslashSign/weight.cls}, and click \click|Ok|. \endbullets \par C:\Phw\Onto\Smalltalk\exchange.tex •••

After you have followed this ritual, Smalltalk will have written the definition of the Weight class and all the methods associated with the weight class into the file that you specified. C:\Phw\Onto\Smalltalk\exchange.tex •••