foreach seems to work with opIndex()

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 6 07:09:30 PST 2016


On 06.02.2016 16:00, anonymous wrote:
> https://issues.dlang.org/show_bug.cgi?id=14619

Sorry, posted a bit hastily. Issue 14619 is just about a bug in the 
feature. The more relevant issue is number 5605:

https://issues.dlang.org/show_bug.cgi?id=5605

As far as I can tell, this is not documented on dlang.org. It should be, 
of course.

I personally think it's a misfeature. Explicit slicing is just two 
characters longer and makes it more clear what's happening.


More information about the Digitalmars-d-learn mailing list