Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1120

allow dynamic method calls via obj."$methodname"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-RC-1
    • None
    • None

    Description

      > idea:
      > it's possible to call
      > obj.'methodname'(params)
      > how about
      > obj."$reference"(params)

      blackdrag:

      yes, thought about something like this too... I thought about something
      like an String-Unescape-Operator, but GString is better.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: