foreach seems to work with opIndex()
Tofu Ninja via Digitalmars-d-learn Sat, 06 Feb 2016 06:45:37 -0800
Foreach seems to work if there is an opIndex() with no arguments
that returns a range interface, is this documented? I can't seem
to find anything that say this is supposed to happen. I am not
really complaining, its nice, but I just didnt really expect it
because I feel like I remember this being an error some time ago.
- foreach seems to work with opIndex() Tofu Ninja via Digitalmars-d-learn
- Re: foreach seems to work with opI... Tofu Ninja via Digitalmars-d-learn
- Re: foreach seems to work with opI... anonymous via Digitalmars-d-learn
- Re: foreach seems to work with... anonymous via Digitalmars-d-learn
- Re: foreach seems to work with opI... H. S. Teoh via Digitalmars-d-learn
- Re: foreach seems to work with opI... Tofu Ninja via Digitalmars-d-learn
- Re: foreach seems to work with opI... ZombineDev via Digitalmars-d-learn
- Re: foreach seems to work with... H. S. Teoh via Digitalmars-d-learn