/[eiffelstudio]/trunk/eweasel/tests/agent013/test_proc.e
ViewVC logotype

Annotation of /trunk/eweasel/tests/agent013/test_proc.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82134 - (hide annotations)
Thu Jan 21 00:22:18 2010 UTC (10 years ago) by manus
File size: 671 byte(s)
Added a new test on agent showing that if one tries to redefine `call' in a descendant of one of the EiffelBase agent type class, the generated code in finalized mode does not work properly.

1 manus 82134 class
2     TEST_PROC [BASE_TYPE, OPEN_ARGS -> TUPLE create default_create end]
3    
4     inherit
5     PROCEDURE [BASE_TYPE, OPEN_ARGS]
6     redefine
7     call
8     end
9    
10     create
11     make
12    
13     feature -- Initialization
14    
15     make (a_unbound_procedure: like unbound_procedure)
16     do
17     unbound_procedure := a_unbound_procedure
18     unbound_arguments := unbound_procedure.empty_operands
19    
20     is_target_closed := True
21     open_count := empty_operands.count
22     end
23    
24     feature -- Access
25    
26     unbound_arguments: TUPLE
27     unbound_procedure: PROCEDURE [ANY, TUPLE]
28    
29     feature -- Basic operations
30    
31     call (args: OPEN_ARGS)
32     -- <Precursor>
33     do
34     unbound_arguments [1] := 47
35     unbound_procedure.call (unbound_arguments)
36     end
37     end
38    

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23