== Quote from Andrei Alexandrescu ([email protected])'s article
> On 9/12/11 7:28 AM, Timon Gehr wrote:
> > This eager D version uncovered a DMD bug:
> >
> > import std.stdio, std.algorithm, std.range;
> > T[][] powerset(T)(T[] xs){
> > T[][] r=new T[][](1<<xs.length);
> > foreach(i,ref x;r) x=array(indexed(xs,filter!((a){return
> > 1<<a&i;})(iota(0,xs.length))));
> > return r;
> > }
> >
> > void main(){
> > writeln(powerset([1,2,3]));
> > }
> >
> > This does not compile iff the -inline flag is passed to DMD 2.055.
> goto bugzilla;
> Andrei

Looks like this old bug report:

http://d.puremagic.com/issues/show_bug.cgi?id=4724

I'd love to see fixing all the lambda function issues be the next big push for
improving DMD.  Right now, they're so buggy it's not even funny.  Besides 4724,
the other one that really irks me and severely limits the usability of
std.parallelism is http://d.puremagic.com/issues/show_bug.cgi?id=5710 .

Reply via email to