Make it static, i.e. append "static" before "def"
On Mon, May 16, 2016 at 6:57 PM Guy Matz wrote:
> Thanks! Not working, though. Getting:
> No such property: compareVersions for class: Sorters
>
> with:
>
> class Sorters {
> def compareVersions = { afile, bfile ->
>
Hey, everyone.
It's been awhile since last time I participated in Groovy.
I was mostly in read-only mode for the last two years.
With this move, I hope to change it.
I created a proposal for macro methods (no ETA, initially aimed to 3.0)
because I think they are great for the future of Groovy
but in Groovy
> would apply the macro transformations.
>
>
>
> Jason
>
>
>
> *From:* Sergei Egorov [mailto:bsid...@gmail.com]
> *Sent:* Friday, September 23, 2016 5:58 AM
> *To:* d...@groovy.apache.org; users@groovy.apache.org
> *Subject:* Macro methods
://github.com/bsideup/groovy-macro-methods-proposal
I'm looking forward to being an active committer!
Thanks,
Sergei Egorov
On Sat, Dec 10, 2016 at 11:08 AM Cédric Champeau <cchamp...@apache.org>
wrote:
> Hi folks,
>
> I'd like to introduce you to Sergei Egorov, our new Apache Groovy
&g
23, 2016 at 4:54 PM Sergei Egorov <bsid...@gmail.com> wrote:
> Unfortunately, it will not work for 100% cases.
>
> I.e. macro method accepts ConstantExpression. You can't a method in Groovy
> with such constraints.
>
> Plus, such signature doesn't make sense for IDEs as well,