C# Indexers. how to implement them in D.. also property related.
    Simen kjaeraas 
    simen.kjaras at gmail.com
       
    Tue Jun 29 06:44:05 PDT 2010
    
    
  
BLS <windevguy at hotmail.de> wrote:
> On 29/06/2010 15:27, Steven Schveighoffer wrote:
>> string opIndex(string columnName);
>
> yeah this is what I did, too..
> However defined as ;
>
> interface I1 {
>    string opIndex(string columnName);
> }
>
> is a no go.
Hm. That should have worked.
> So can we say operator overloading within interfaces is not allowed in  
> D2 ?
The new operator overloading scheme has problems with
interfaces. A damned shame if you ask me.
That said, opIndex does not use templates, and should thus
work no problem.
-- 
Simen
    
    
More information about the Digitalmars-d-learn
mailing list