Issue Details (XML | Word | Printable)

Key: GROOVY-1977
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Guillaume Laforge
Reporter: Graeme Rocher
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Allow static and default to be used as property names after the dereference operator

Created: 13/Jul/07 03:53 AM   Updated: 06/Oct/07 04:52 PM
Component/s: parser, parser-antlr
Affects Version/s: None
Fix Version/s: 1.1-rc-1

Time Tracking:
Not Specified


 Description  « Hide
We should allow the static and default keywords to be used after the . dereference operator so that it makes using ExpandoMetaClass and other mechanisms less clunky

Foo.metaClass.static.bar = { "hello" }



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guillaume Laforge added a comment - 08/Sep/07 11:56 AM
We also mentioned that most other keywords if not all could be allowed after a dot.