mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 07:12:25 +01:00
Added uncontrolled precondition clauses as wait conditions, plus ref to producer-consumer example.
Author:halw Date:2011-07-14T18:11:44.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@937 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -247,7 +247,10 @@ Uncontrolled precondition clauses demand an adaptation of precondition semantics
|
||||
{{Info|A violation of a '''controlled precondition clause''' will cause an exception in the caller as soon as the violation is detected. A violation of an '''uncontrolled precondition clause''' does not result in an exception in the caller. Rather, the feature application waits to execute until such time as the precondition clause holds. }}
|
||||
|
||||
|
||||
So, the client's responsibility is limited to those precondition clauses that are controlled.
|
||||
So, the client's responsibility is limited to those precondition clauses that are controlled. Uncontrolled precondition clauses become '''wait conditions'''.
|
||||
|
||||
|
||||
{{SeeAlso|The <code>{PRODUCER}.store</code> feature in the [[Producer-consumer|producer-consumer]] example. When called by <code>{PRODUCER}.produce</code> it becomes a '''wait condition'''.}}
|
||||
|
||||
|
||||
===Postconditions===
|
||||
|
||||
Reference in New Issue
Block a user