User defined type and foreach
Steven Schveighoffer
schveiguy at yahoo.com
Thu Nov 16 18:34:54 UTC 2017
On 11/16/17 8:10 AM, ag0aep6g wrote:
> 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
I took a shot at fixing. Way more complex than I realized.
-Steve
More information about the Digitalmars-d-learn
mailing list