Suggestions for multiple class members with the same name

Koroskin Denis 2korden at gmail.com
Mon Aug 11 17:56:03 PDT 2008


On Tue, 12 Aug 2008 01:43:56 +0400, Ary Borenszweig <ary at esperanto.org.ar>  
wrote:

> 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.

Yeah, but how do you distinguish which one is first and which one is  
second?



More information about the Digitalmars-d mailing list