User defined type and foreach

ag0aep6g anonymous at example.com
Thu Nov 16 13:10:11 UTC 2017


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


More information about the Digitalmars-d-learn mailing list