Difference between revisions of "Agent Calls"

(Terminology)
(Terminology)
Line 2: Line 2:
 
Work in progress!
 
Work in progress!
 
== Terminology ==
 
== Terminology ==
In the following text the creation of an agent (with the agent keyword or the tilde operator) is called the '''agent creation'''.
+
In the following text the place where an agent is created(with the agent keyword or the tilde operator) is called the '''agent creation'''. The feature to which the agent points is the '''callee'' and the place (or places) where the agent is denoted '''agent call'''
 +
 
 
<code>[eiffel,N]
 
<code>[eiffel,N]
 
class  
 
class  
Line 13: Line 14:
 
             p: PROCEDURE [ANY, TUPLE]
 
             p: PROCEDURE [ANY, TUPLE]
 
         do
 
         do
             p := agent target
+
             p := agent target   -- agent creation
 
         end
 
         end
  
 
     f2 (p: PROCEDURE [ANY, TUPLE])
 
     f2 (p: PROCEDURE [ANY, TUPLE])
 
         do
 
         do
             p.call ([])
+
             p.call ([])         -- agent call
 
         end
 
         end
 
      
 
      
     target
+
     target                     -- callee
 
         do
 
         do
 
         end
 
         end

Revision as of 15:35, 21 August 2006

Work in progress!

Terminology

In the following text the place where an agent is created(with the agent keyword or the tilde operator) is called the agent creation'. The feature to which the agent points is the callee and the place (or places) where the agent is denoted agent call

class 
    TERMINOLOGY
 
feature
 
    f1
        local
            p: PROCEDURE [ANY, TUPLE]
        do
            p := agent target   -- agent creation
        end
 
    f2 (p: PROCEDURE [ANY, TUPLE])
        do
            p.call ([])         -- agent call
        end
 
    target                      -- callee
        do
        end
end

Wrapper generation

class
    C
 
feature
    f (p1, p2: INTEGER; p3: STRING): STRING
        do
            ...
        end   
end