/[eiffelstudio]/trunk/eweasel/tests/attach126/a.e
ViewVC logotype

Annotation of /trunk/eweasel/tests/attach126/a.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 99962 - (hide annotations)
Mon Mar 13 10:21:21 2017 UTC (2 years, 7 months ago) by alexk
File size: 423 byte(s)
Added an example that demonstrates access on void target when object creation fails with an exception after initializing a once function returning with an incompletely initialized object of another class.
1 alexk 99962 class A
2    
3     create
4     default_create,
5     make
6    
7     feature {NONE} -- Creation
8    
9     make (value: TEST)
10     -- Raise an exception after registering `value` in a once function.
11     do
12     check not attached f (value) then end
13     end
14    
15     feature -- Access
16    
17     f (value: TEST): TEST
18     -- A once function returning an incompletely initialized object
19     -- if `value` was incompletely initialized at the first call.
20     once
21     Result := value
22     end
23    
24     end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23