[dmd-beta] dmd 1.063 and 2.048 beta

Andrei Alexandrescu andrei at erdani.com
Tue Aug 10 03:35:21 PDT 2010


Walter==awesome


Sent by shouting through my showerhead.

On Aug 10, 2010, at 5:22 AM, Walter Bright <walter at digitalmars.com>  
wrote:

>
>
> 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
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta


More information about the dmd-beta mailing list