properties

Ary Borenszweig ary at esperanto.org.ar
Tue Jul 28 10:40:37 PDT 2009


Andrei Alexandrescu wrote:
> Steven Schveighoffer wrote:
>> On Tue, 28 Jul 2009 11:11:09 -0400, Andrei Alexandrescu 
>> <SeeWebsiteForEmail at erdani.org> wrote:
>> D's implementation looks to me like a quick hack so D can say "look, 
>> we have properties!"  They don't provide any of the interface benefits 
>> that true properties do.
> 
> What are the interface benefits that "true" properties do? What is a 
> "true" property? Something that could do anything. Surprise, that was 
> already the charter of functions. Well thank you very much.

Just because it could do anything doesn't mean it *has* to do anything. 
Again, D ranges suck because the compiler can't enforce you that empty, 
pop, etc., actually do what their name says.



More information about the Digitalmars-d mailing list