Ary Manzana wrote: > Could something like this be done? I think it has the clearest syntax: > no new keywords needed and very flexible. The compiler should check that > the right side of the foreach is an array, or a class or struct having > opApply, or a delegate of the singature I mentioned before. Already done! See BCS's post.