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

Adding instance methods to classes

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1-beta-2
    • None
    • None

    Description

      Sam introduced the "use" keyword but I'd like to have a somewhat more permanent ways because "use" is quite noisy in scripts and can get overused quite easily.

      I quickly developed a simple way to add methods just like the DefaultGroovyMethods does. Its not perfect cause it requires a system property but it works quite nicely.

      See patch&testcase here:

      http://lists.codehaus.org/pipermail/groovy-dev/2004q2/002055.html

      Attachments

        Activity

          People

            paulk Paul King
            maniax Thomas Heller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: