On 11/16/2017 09:03 AM, Tony wrote: > However, when I use the class with foreach, the opindex gets called to > create a dynamic array, rather than use the empty(),front(),popFront() > routines. I would prefer it use the three methods, rather than create a > dynamic array. https://issues.dlang.org/show_bug.cgi?id=14619