It allows you to use the no-arg method without parentheses (for example, reading a variable) and allows you to call a method with one argument without parentheses, as you assign a variable.
@property int foo() { ... } @property void bar(int x) { ... } void main() { bar = foo; }
You must specify -property as the command line parameter for the compiler.
Mehrdad
source share