byKey and byValue: properties or methods?
Somedude
lovelydear at mailmetrash.com
Tue Jan 17 11:08:44 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
Microsoft guidelines:
http://msdn.microsoft.com/en-us/library/ms229054.aspx
http://msdn.microsoft.com/en-us/library/bzwdh01d%28v=vs.71%29.aspx
Googling "method vs property" gives different answers to this recurring
question.
More information about the Digitalmars-d
mailing list