Details
-
Documentation
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Section 1.2.8 (Other Operators: http://docs.groovy-lang.org/latest/html/documentation/#_other_operators) mentions the Call Operator (aka call method). But I do not see mention of the get(name) and set(name,value) methods that lead to a "dot" operator overload as it is mentioned in Groovy in Action.
Example (Call and Dot operator overloads):
class General { def call(... args) { println "Called with args: $args" } def get(String name) { println "Getting property: $name" } void set(String name, Object value) { println "Setting property: $name" } } General g = new General() g.unknown g.unknown = '' g("1", "2")