Suggestions for multiple class members with the same name

BCS ao at pathlink.com
Mon Aug 11 14:59:19 PDT 2008


Reply to Ary,

> bearophile a écrit :
> 
>> bobef Wrote:
>> 
>>> Make this syntax valid:
>>> A.a[1]
>>> A.a.length
>> Why? Can you show/tell some purpose of it?
>> 
>> Bye,
>> bearophile
> I think he can't have a reference to the second "a" method, because
> &A.a just returns the first one. So he's asking to treat "A.a" as an
> array of methods.
> 

ouch!

better solution

&A.a(char[])
&A.a(int)





More information about the Digitalmars-d mailing list