User's Guide

Example: Evaluating an expression to change a setting

This example shows you how to change the following setting in the Preferences Workspace:

System genericFormat: false

What Is the IBM Smalltalk format?

The default setting System genericFormat: false has the class System file out your components in the IBM Smalltalk format. This format chunks component definitions, source code, and other information about components. It marks the end of each chunk with one exclamation point (!) and the end of each file with an exclamation point, a space, then another exclamation point (! !). When you file out components in the IBM Smalltalk format, you can easily file those components back into a VisualAge system.

When you file out components in the generic (non-IBM) Smalltalk format and then file those components back into a VisualAge system, you might find that the filed-in components are structured differently than the components you originally had. For example, private methods become public methods.

Changing the setting to false

If you intend to file components into a system that uses the generic Smalltalk format, you should change the setting to true before you file out your components.

To change the setting to true, do the following in the Preferences Workspace:

  1. Ensure that the value is true.
  2. Evaluate the expression, as shown below. The setting is changed.

Changing settings

Verifying that the setting changed

You can verify that evaluating the expression changed the setting by, of course, filing out code and seeing whether the target file contains statements that define a method's structure. An easier way is to display the statement System genericFormat.
Testing a setting

The current setting, such as false, is displayed.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]