Author:halw

Date:2008-10-13T22:01:47.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@79 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2008-10-13 22:01:47 +00:00
parent b5409df103
commit b2f92d3e33
20 changed files with 136 additions and 91 deletions

View File

@@ -14,12 +14,16 @@ For feature clause names it is recommended that you pick one from the standard o
==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: <br/>
<code>feature {EXPORT} -- Clause name</code><br/>
except if you specified <eiffel>ANY</eiffel> as export status, which is similar to having no export status. <br/>
<code>feature --Clause name</code>
<code>
feature {EXPORT} -- Clause name</code><br/>
except if you specified <eiffel>ANY</eiffel> as export status, which has the same meaning as not specifying class names in the export status: <br/>
<code>
feature --Clause name</code>
<br/>
For example, if you specified a the "Initialization" feature clause name, and specified <eiffel>NONE</eiffel> as export status, you get: <br/>
<code>feature {NONE} -- Initialization</code>
<code>
feature {NONE} -- Initialization</code>

View File

@@ -2,7 +2,11 @@
[[Property:weight|1]]
[[Property:uuid|c0708842-e5e0-5d5c-5746-0507d1709a3e]]
There are two parts in the window. The upper part allows you to choose what type of feature you want to create, a procedure, a function or an attribute.
[[Image:feature-wizard]]
[[Image:feature-wizard]]
The rest of the window is used to set the characteristics of the new feature. Information you will be asked depends on the type you chose. For more information, click on one of the links below:
* [[New procedure layout|New procedure layout]]
* [[New function layout|New function layout]]

View File

@@ -16,19 +16,21 @@ When clicking '''Procedure''', the window changes to the procedure layout. It ha
This dialog box:<br/>
<div> [[Image:feature-wizard-procedure-example]] </div><br/>
Produces this feature:<br/>
<code>class
<code>
class
PRODUCT
feature {PERSON} -- Element change
place_order (person: PERSON; quantity: INTEGER) is
-- Mail `quantity' to `person'.
require
require
person /= Void and quantity > 0
do
do
person.mail_order (Current, quantity)
ensure
ensure
person.has_ordered (Current)
end