opSlice and $

Russell Lewis webmaster at villagersonline.com
Tue Sep 11 10:38:30 PDT 2007


It appears to me, looking at the spec, that there isn't a way to support 
the use of $ in operator overloading.  Is there anything I've 
overlooked?  What I'm looking for, of course, is to be able to do:

class MyClass {....}

MyClass c = new MyClass;
auto x = c[1..$];



More information about the Digitalmars-d mailing list