No $ for op overloads?

Nick Sabalausky a at a.a
Fri Sep 4 22:31:12 PDT 2009


I made a simple struct that overloads opIndex and opSlice, and also exposed 
a "length" property. But when I try to use $ on it, I got:

Error: undefined identifier __dollar

I tried making a property "__dollar" that just returned "length", but that 
didn't change anything.

What's going on? Any ideas? 




More information about the Digitalmars-d-learn mailing list