byKey and byValue: properties or methods?

Peter Alexander peter.alexander.au at gmail.com
Tue Jan 17 13:13:49 PST 2012


On 17/01/12 6:48 AM, Andrei Alexandrescu wrote:
> 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

byKey(aa)

Roll a dice, choose one at random.

The only thing properties are good for is distracting us from tabs vs. 
spaces debates, and other really, really important matters.


More information about the Digitalmars-d mailing list