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 Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: groovy-runtime
    • Labels:
      None
    • Number of attachments :
      0

      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

          blackdrag blackdrag made changes -
          Field Original Value New Value
          Fix Version/s 2.0 [ 13489 ]
          blackdrag blackdrag made changes -
          Link This issue depends upon GROOVY-2503 [ GROOVY-2503 ]
          blackdrag blackdrag made changes -
          Component/s groovy-runtime [ 16250 ]

            People

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

              Dates

              • Created:
                Updated: