Given:

@property int delegate() foo(){ ... }
@property int bar(){ ... }
int baz(){ ... }

foo(); // calls the delegate.
bar(); // illegal
baz;   // ok, call baz

dmd -property gets every single one of these wrong. -property does _not_ enforce @property semantics. It only adds a silly rule that was never part of the @property design. I am astonished that it made it into the
compiler.

+1

Reply via email to