Ranges
Lutger
lutger.blijdestijn at gmail.com
Fri Jun 19 11:10:52 PDT 2009
Steve Teale wrote:
...
> Robert Fraser Wrote:
>> As others have mentioned, it's just a struct (or other type) that
>> happens to support certain operations.
>
> So does this mean that interfaces are just a tragic mistake. I'd always
> thought that what you said was a pretty good description of what an
> interface is!
Could you explain why that makes interfaces a mistake? Interfaces (as in
classes implementing an interface) do provide dynamic polymorphism which
these compile time constraints (or 'concepts' in STL terms) don't.
More information about the Digitalmars-d
mailing list