Miranda printOn

From Erights

(Difference between revisions)
Jump to: navigation, search

Latest revision as of 03:33, 7 August 2011

__printOn/1 is a Miranda message which constitutes E's protocol for turning objects into strings.


Signature: __printOn(out :TextWriter) :void

XXX Loosen spec to permit non-text-writers

Print a representation of or name for this object on the provided TextWriter.

The TextWriter is responsible for breaking cycles.

The Miranda method is:

to __printOn(out) {
  out.write("<" + the simple name from this object's FQN + ">")


XXX Write tests

Personal tools
more tools