E (object)

From Erights

(Difference between revisions)
Jump to: navigation, search
(JSHqFqACsaMaWMx)
(actual content)
Line 1: Line 1:
-
Ppl like you get all the brains. I just get to say thanks for he anwesr.
+
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

Signature: call(recipient :any, verb :String, args :List) :any

The specification for this message has not been written.

callWithPair/3

Signature: callWithPair(recipient :any, verbAndArgs :Tuple[String, List]) :any

Equivalent to E.call(recipient, verbAndArgs[0], verbAndArgs[1]).

send/3

Signature: send(recipient :any, verb :String, args :List) :rcvr

The specification for this message has not been written.

sendOnly/3

Signature: sendOnly(recipient :any, verb :String, args :List) :XXX

The specification for this message has not been written.

toString/1

Signature: toString(object :any) :Twine
Equivalent to
def [tw, sb] := <elib:oldeio.makeTextWriter>.makeBufferingPair()
tw.print(object)
return sb.toString()
.

toQuote/1

Signature: toQuote(object :any) :Twine
Equivalent to
def [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.
Personal tools
more tools