David Simcha wrote:
I'm receiving a rather inscrutable compile time error on the following
test program:
import std.stdio, std.algorithm, std.string;
void main() {
auto file = filter!"a.length > 0"(
File("foo.txt").byLine()
);
}
Error: function std.algorithm.filter!("a.length >
0").filter!(ByLine!(char,char)).filter cannot access frame of function
this
Amazingly, this boils down to just:
struct ByLine {
~this();
}
void foo() {
struct Filter {
this(ByLine r) { }
}
}
A fix is on the way.
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta