Why is std.algorithm so complicated to use?
Jonathan M Davis
jmdavisProg at gmx.com
Tue Jul 10 13:10:51 PDT 2012
On Tuesday, July 10, 2012 22:04:17 Timon Gehr wrote:
> @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.
The current implementation of -property is horribly broken:
http://d.puremagic.com/issues/show_bug.cgi?id=4183
http://d.puremagic.com/issues/show_bug.cgi?id=8162
It's not actually enforcing what it's supposed to enforce, and it needs to be
fixed.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list