byKey and byValue: properties or methods?

Olivier Pisano olivier.pisano at laposte.net
Wed Jan 18 12:31:57 PST 2012


Le 17/01/2012 07:48, Andrei Alexandrescu a écrit :
> I hate I must ask this:
>
> int[string] aa;
> foreach (k; aa.byKey) { ... }
>
> or
>
> int[string] aa;
> foreach (k; aa.byKey()) { ... }
>
>
>
> Thanks,
>
> Andrei "I told you" Alexandrescu

I vote for the methods.

Cheers,

Olivier


More information about the Digitalmars-d mailing list