byKey and byValue: properties or methods?

Nick Sabalausky a at a.a
Mon Jan 16 23:11:32 PST 2012


"Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message 
news:jf35jr$e2k$1 at digitalmars.com...
>I hate I must ask this:
>
> int[string] aa;
> foreach (k; aa.byKey) { ... }
>
> or
>
> int[string] aa;
> foreach (k; aa.byKey()) { ... }
>

Property. It's not an action, you're just accessing a particular interface 
of aa.




More information about the Digitalmars-d mailing list