Feature clauses

The feature you create will be inserted in the feature clause you specified. If the feature clause was not already in your class, or not in the right place, EiffelStudio adds the feature clause to the class text based on the feature clause order specified in the preferences . By default, this is the order used by the Eiffel Software libraries, such as EiffelBase.

Export status

The export status is the class the feature is accessible for. Usually, this is ANY for public features, or NONE for implementation features, but you can specify any class here.

Note: In the class text, you can export a feature to more than one class but (for simplicity) not with this dialog.

Feature clause names

For feature clause names it is recommended that you pick one from the standard ones, but it is also possible to create a new one. If you have introduced a special feature clause name in your project, add it to the feature clause order list in the preferences and it will also appear in this dialog.

Generated code

The code that is inserted in your class as a result of the selections made for the feature clause, is of the form:
feature {EXPORT} -- Clause name
except if you specified ANY as export status, which has the same meaning as not specifying class names in the export status:
feature --Clause name

For example, if you specified a the "Initialization" feature clause name, and specified NONE as export status, you get:
feature {NONE} -- Initialization

cached: 12/30/2024 10:55:56.000 AM