Search code examples
eiffel

Eiffel: Where can I find a reference with common features lists?


Am looking for typical

feature {NONE} -- Initialization (semantic)
feature -- Status Settings (semantic)
.....

Where can I find that list with semantic?

Didn't find it into ECMA


Solution

  • The ECMA standard does not impose any specific style on the programs. An unfinished page describing style guidelines gives an example with the following feature clause comments:

    • Initialization
    • Access
    • Status report
    • Status setting
    • Element change
    • Removal
    • Implementation

    The dialog to add a new feature in EiffelStudio lists some other common feature clause groups:

    • Measurement
    • Comparison
    • Cursor movement
    • Resizing
    • Transformation
    • Conversion
    • Duplication
    • Miscellaneous
    • Basic operations
    • Obsolete
    • Inapplicable

    EiffelStudio puts the same list of feature clauses when adding a new class to the system, provided that an option "Generate default feature clauses" is checked.

    Standard kernel classes come with some more common categories, e.g.:

    • Input
    • Output
    • Iteration