From Erights
(Difference between revisions)
|
|
(One intermediate revision not shown) |
Line 1: |
Line 1: |
- | The object named <code>E</code> in the [[universal env]] provides a number of useful operations and is the primitive with which variable-argument calls and sends may be made.
| + | #REDIRECT [[Object E]] |
- | | + | |
- | ==Protocol==
| + | |
- | | + | |
- | {{instance msgdoc|call|3|<var>recipient</var> :[[any]], <var>verb</var> :[[String]], <var>args</var> :[[List]]|[[any]]}}
| + | |
- | | + | |
- | {{unspecified message}}
| + | |
- | | + | |
- | {{instance msgdoc|callWithPair|3|<var>recipient</var> :[[any]], <var>verbAndArgs</var> :{{sub|[[Tuple]]|[[String]], [[List]]}}|[[any]]}}
| + | |
- | | + | |
- | {{specbycode|E.call(recipient, verbAndArgs[0], verbAndArgs[1])}}
| + | |
- | | + | |
- | {{instance msgdoc|send|3|<var>recipient</var> :[[any]], <var>verb</var> :[[String]], <var>args</var> :[[List]]|[[rcvr]]}}
| + | |
- | | + | |
- | {{unspecified message}}
| + | |
- | | + | |
- | {{instance msgdoc|sendOnly|3|<var>recipient</var> :[[any]], <var>verb</var> :[[String]], <var>args</var> :[[List]]|{{XXX}}}}
| + | |
- | | + | |
- | {{unspecified message}}
| + | |
- | | + | |
- | {{instance msgdoc|toString|1|<var>object</var> :[[any]]|[[Twine]]}}
| + | |
- | | + | |
- | {{specbycode|<pre>def [tw, sb] := <elib:oldeio.makeTextWriter>.makeBufferingPair()
| + | |
- | tw.print(object)
| + | |
- | return sb.toString()</pre>}}
| + | |
- | | + | |
- | {{instance msgdoc|toQuote|1|<var>object</var> :[[any]]|[[Twine]]}}
| + | |
- | | + | |
- | {{specbycode|<pre>def [tw, sb] := <elib:oldeio.makeTextWriter>.makeBufferingPair()
| + | |
- | tw.quote(object)
| + | |
- | return sb.toString()</pre>}}
| + | |
- | | + | |
- | {{stub}}
| + | |
Latest revision as of 23:16, 20 April 2011
- REDIRECT Object E