[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-dev
Subject: Re: [groovy-dev] help needed
From: Paul King <paulk () asert ! com ! au>
Date: 2008-05-30 12:09:30
Message-ID: 483FEE7A.6040305 () asert ! com ! au
[Download RAW message or body]
Paul King wrote:
>
> You don't need the quotes around static since the patch from
> GROOVY-1649 a few days ago:
>
> map = [static:[property:'foo']]
> assert map.static.property == 'foo'
>
> but it can only appear after a dot or as a key to the map.
I just noticed that "this" and "super" don't actually work
even though they have just been allowed in the grammar.
No doubt they receive special treatment earlier on. I guess
they should be removed from the grammar. Any thoughts?
Paul.
> Jochen Theodorou wrote:
>> Alex Tkachman schrieb:
>>> for buitiful metaClass DSL :)
>>
>> foo.'static'.property won't do?
>>
>> bye blackdrag
>>
>>>
>>> On Fri, May 30, 2008 at 1:19 PM, Guillaume Laforge
>>> <glaforge@gmail.com> wrote:
>>>> On Fri, May 30, 2008 at 11:17 AM, Alex Tkachman
>>>> <alex.tkachman@gmail.com> wrote:
>>>>> Does anybody know how to modify grammar to allow
>>>>>
>>>>> static.property
>>>>>
>>>>> ?
>>>> And why?
>>>>
>>>>
>>>> --
>>>> Guillaume Laforge
>>>> Groovy Project Manager
>>>> G2One, Inc. Vice-President Technology
>>>> http://www.g2one.com
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe from this list, please visit:
>>>>
>>>> http://xircles.codehaus.org/manage_email
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>> http://xircles.codehaus.org/manage_email
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic