Groovy
  1. Groovy
  2. GROOVY-2768

Add sender of method calls as a parameter to the methods of MetaClass

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: groovy-runtime
    • Labels:
      None

      Description

      MetaClass extends the MOP interface with methods which have a senderClass as their first parameter. Unfortunately, the param does not refer to the sender of the original method call but is in most cases identical to the receiver's class.

      Knowing the sender of a method call would allow interesting reflective program structures like subjective programming with a three-dimensional message dispatch. A method can not only be overwritten by the receiver with polymorphism but also by the sender. Refer to http://citeseer.ist.psu.edu/smith96simple.html for more details.

        Issue Links

          Activity

          Mark Thomas made changes -
          Workflow jira [ 12969754 ] Default workflow, editable Closed status [ 12977504 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
          Mark Thomas made changes -
          Workflow jira [ 12731792 ] Default workflow, editable Closed status [ 12743614 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
          Jochen Theodorou made changes -
          Component/s groovy-runtime [ 16250 ]
          Jochen Theodorou made changes -
          Link This issue depends upon GROOVY-2503 [ GROOVY-2503 ]
          Jochen Theodorou made changes -
          Field Original Value New Value
          Fix Version/s 2.0 [ 13489 ]
          Arvid Heise created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Arvid Heise
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development