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

Diff of /trunk/eweasel/tests/agent013/test.e

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 103060 by manus, Thu Jan 21 00:22:18 2010 UTC revision 103061 by alexk, Sun Apr 7 06:55:59 2019 UTC
# Line 6  feature Line 6  feature
6    
7          make          make
8                  local                  local
9                          p: TEST_PROC [ANY, TUPLE]                          p: TEST_PROC
10                  do                  do
11                          create p.make (agent (i: INTEGER) do io.put_integer (i); io.put_new_line end)                          create p.make (agent (i: INTEGER) do io.put_integer (i); io.put_new_line end)
12                          p.call ([]) -- OK in workbench and finalized modes                          p.call ([]) -- OK in workbench and finalized modes
# Line 14  feature Line 14  feature
14                          foo (p) -- OK in workbench mode; fails in finalized mode                          foo (p) -- OK in workbench mode; fails in finalized mode
15                  end                  end
16    
17          bar: PROCEDURE[ANY, TUPLE]          bar: PROCEDURE
18                  do                  do
19                          create {TEST_PROC [ANY, TUPLE]} Result.make (agent (i: INTEGER) do io.put_integer (i); io.put_new_line end)                          create {TEST_PROC} Result.make (agent (i: INTEGER) do io.put_integer (i); io.put_new_line end)
20                  end                  end
21    
22          foo (p: PROCEDURE[ANY, TUPLE])          foo (p: PROCEDURE)
23                  do                  do
24                          p.call ([])                          p.call ([])
25                  end                  end

Legend:
Removed from v.103060  
changed lines
  Added in v.103061

  ViewVC Help
Powered by ViewVC 1.1.23