Miranda optUncall
From Erights
(Difference between revisions)
(import javadoc) |
Kevin Reid (Talk | contribs) (describe optUncall) |
||
Line 1: | Line 1: | ||
'''__optUncall/0''' is a [[Miranda message]] which may return a [[portrayal]] of the object receiving it. | '''__optUncall/0''' is a [[Miranda message]] which may return a [[portrayal]] of the object receiving it. | ||
- | |||
- | |||
- | |||
- | |||
For [[Selfless]] objects, __optUncall is guaranteed to return a portrayal which exactly represents the object; if <var>a</var> is selfless, then <var>a</var> [[==]] E.call(E, "call", <var>a</var>.__optUncall()). | For [[Selfless]] objects, __optUncall is guaranteed to return a portrayal which exactly represents the object; if <var>a</var> is selfless, then <var>a</var> [[==]] E.call(E, "call", <var>a</var>.__optUncall()). | ||
__optUncall is typically used by serialization systems for the default portrayal in the absence of other knowledge about the object. | __optUncall is typically used by serialization systems for the default portrayal in the absence of other knowledge about the object. | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
[[Category:Miranda messages]] | [[Category:Miranda messages]] |
Revision as of 13:52, 21 April 2007
__optUncall/0 is a Miranda message which may return a portrayal of the object receiving it.
For Selfless objects, __optUncall is guaranteed to return a portrayal which exactly represents the object; if a is selfless, then a == E.call(E, "call", a.__optUncall()).
__optUncall is typically used by serialization systems for the default portrayal in the absence of other knowledge about the object.