Immediate call

From Erights

(Difference between revisions)
Jump to: navigation, search
(less stubby)
(See also)
Line 9: Line 9:
Dynamic calls of arbitrary verb and argument count can be performed with [[E (object)#call/3|E.call]].
Dynamic calls of arbitrary verb and argument count can be performed with [[E (object)#call/3|E.call]].
-
==See also==
+
That's not just the best answer. It's the beetsst answer!
-
* [[Eventual send]]
+
-
* [http://www.erights.org/elib/concurrency/msg-passing.html#call]
+
-
* [[CallExpr]]
+
-
 
+
-
{{stub}}
+
-
 
+
-
[[Category:ELib specification]]
+

Revision as of 06:34, 20 April 2011

An immediate call, or call, is the operation in E which corresponds to the “method call”, “function call”, or sometimes “message send” of other object-oriented systems.

In E, an immediate call can only be performed on a near reference, and it always returns "immediately" — within the same turn, without waiting or blocking — as opposed to the eventual send.

The E-language syntax for a call is

recipient.verb(arg, arg, ...)

where recipient and arg are expressions and verb is an identifier or string literal.

Dynamic calls of arbitrary verb and argument count can be performed with E.call.

That's not just the best answer. It's the beetsst answer!

Personal tools
more tools