Why is std.algorithm so complicated to use?

Dmitry Olshansky dmitry.olsh at gmail.com
Tue Jul 10 13:38:51 PDT 2012


On 11-Jul-12 00:07, Tobias Pankrath wrote:
>>
>> 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

Same here. Still no idea what they were smoking at the time.

-- 
Dmitry Olshansky




More information about the Digitalmars-d mailing list