On Tue, 05 Jun 2012 20:46:51 +0200, Timon Gehr <timon.g...@gmx.ch> wrote:
It should be dropped. A pointer to range is a perfectly fine range.
Sure..? I couldn't get it to work either: struct R { string test = "aoeu"; @property front() { return test[0]; } @property bool empty() { return !test.length; } void popFront(){test = test[0..$];} } void main() { R r; R* p = &r; foreach(ch; p) // invalid foreach aggregate p writeln(ch); }