Global operator overloading?

2009-08-06 Thread Jeremie Pelletier
Are there any plans to have global operator overloading in D? It would be terribly useful with ranges, since std.array already define range primitives for arrays, I tried to implement array primitives to ranges the same way, ie: --- bool opEquals(T, U)(T t, U, u) if(isInputRange!T

Re: Global operator overloading?

2009-08-06 Thread Andrei Alexandrescu
Jeremie Pelletier wrote: Are there any plans to have global operator overloading in D? It would be terribly useful with ranges, since std.array already define range primitives for arrays, I tried to implement array primitives to ranges the same way, ie: --- bool opEquals(T, U)(T t, U, u) if

Re: Global operator overloading?

2009-08-06 Thread Jeremie Pelletier
Andrei Alexandrescu Wrote: > Jeremie Pelletier wrote: > > Are there any plans to have global operator overloading in D? > > > > It would be terribly useful with ranges, since std.array already define > > range primitives for arrays, I tried to implement array primiti