E (object)
From Erights
(Difference between revisions)
(JSHqFqACsaMaWMx) |
Kevin Reid (Talk | contribs) (actual content) |
||
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. | |
+ | |||
+ | ==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}} |
Revision as of 23:08, 20 April 2011
The object named E
in the universal env provides a number of useful operations and is the primitive with which variable-argument calls and sends may be made.
Contents |
Protocol
call/3
The specification for this message has not been written.
callWithPair/3
Equivalent to E.call(recipient, verbAndArgs[0], verbAndArgs[1])
.
send/3
The specification for this message has not been written.
sendOnly/3
The specification for this message has not been written.
toString/1
Equivalent todef [tw, sb] := <elib:oldeio.makeTextWriter>.makeBufferingPair()
tw.print(object)
return sb.toString()
.
toQuote/1
Equivalent todef [tw, sb] := <elib:oldeio.makeTextWriter>.makeBufferingPair()
tw.quote(object)
return sb.toString()
.
- This page is a stub; it should be expanded with more information. If doing so, check the original E web site and the mailing list archives for content which could be moved into this page.