opDollar and length

Joseph Rushton Wakeling via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Dec 28 10:02:59 PST 2014


A question that suddenly occurred to me, and I realized I didn't know the answer.

Why is it necessary/desirable to define separate .length and .opDollar methods 
for custom types?


More information about the Digitalmars-d-learn mailing list