Suggestions for multiple class members with the same name

Ary Borenszweig ary at esperanto.org.ar
Mon Aug 11 14:43:56 PDT 2008


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.



More information about the Digitalmars-d mailing list