opDollar()

Caligo iteronvexor at gmail.com
Sat Mar 26 01:03:14 PDT 2011


"In the expression a[<expr 1>, ..., <expr k>], if $ occurs in <expr
i>, it is rewritten as a.opDollar!(i)()."  -- TDPL, pg 380

Is that correct? if so, could some one give an example code?  I don't
understand the need for the parameter.

Also, what is the signature for opDollar() in a struct.  I'm getting
errors trying to implement this.


More information about the Digitalmars-d-learn mailing list