C# Indexers. how to implement them in D.. also property related.

Trass3r un at known.com
Tue Jun 29 06:46:27 PDT 2010


> interface I1 {
>    string opIndex(string columnName);
> }
>
> is a no go. So can we say operator overloading within interfaces is not  
> allowed in D2 ?

It should work.
Only opBinary etc doesn't work yet cause there are problems with template  
functions in interfaces.


More information about the Digitalmars-d-learn mailing list