foreach for ranges?

Mike L. mike.linford.reg at gmail.com
Wed Jul 18 08:21:32 PDT 2012


> Also, UFCS makes no sense on overloaded operators, because they 
> don't get
> called with ".", and all UFCS is is changing obj.func(params) 
> to func(obj,
> params).
>
> - Jonathan M Davis

Ok, that's basically what I was wondering. I had assumed 
foreach(e; someThing) {} could possibly have been converted to 
someThing.opApply() . Thanks for clarifying.


More information about the Digitalmars-d-learn mailing list