monte-language / monte

A dynamic language inspired by Python and E.
Other
78 stars 11 forks source link

Miranda _conformTo #45

Closed MostAwesomeDude closed 8 years ago

MostAwesomeDude commented 9 years ago

The message to _conformTo(guard) :Any should be documented. It is a Miranda method. E's version is outlined on their wiki at http://wiki.erights.org/wiki/Miranda_conformTo

Differences from E's version:

Miranda behavior of this method, for all objects (no exceptions!) is to return the object itself.

Please also document that _conformTo() requires its callee to do any iteration itself; the guard will not call _conformTo() multiple times in a loop. (Any guard caught doing so is buggy and will be relieved of duty immediately.)