Miranda printOn

From Erights

Jump to: navigation, search

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

__printOn/1

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 + ">")
}

Tests

XXX Write tests

Personal tools
more tools