Miranda printOn
From Erights
(Difference between revisions)
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.
__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