[dmd-beta] dmd 1.063 and 2.048 beta
Walter Bright
walter at digitalmars.com
Tue Aug 10 03:22:58 PDT 2010
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.
More information about the dmd-beta
mailing list