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   Resolved: 06/Oct/07 04:52 PM
Return to search
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" }



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.


Guillaume Laforge made changes - 20/Sep/07 03:11 PM
Field Original Value New Value
Fix Version/s 1.1-beta-3 [ 13590 ]
Fix Version/s 1.1-rc-1 [ 13165 ]
Guillaume Laforge made changes - 06/Oct/07 04:50 PM
Assignee Jochen Theodorou [ blackdrag ] Guillaume Laforge [ guillaume ]
Guillaume Laforge made changes - 06/Oct/07 04:52 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]