Three choices: 1) fix the compiler 2) revert the changes in phobos 3) release an ugly regression
I hope #3 isn't on the table.. #1 is obviously the better long term answer (assuming it's a compiler bug, I've not followed this thread much). #2 might be the better short term path. I object to the use of "can't" though. :) On Mon, 9 Aug 2010, Walter Bright wrote: > Date: Mon, 09 Aug 2010 15:55:40 -0700 > From: Walter Bright <[email protected]> > Reply-To: Discuss the dmd beta releases for D <[email protected]> > To: Discuss the dmd beta releases for D <[email protected]> > Subject: Re: [dmd-beta] dmd 1.063 and 2.048 beta > > I can't fix it for this release. > > Andrei Alexandrescu wrote: > > I think that shouldn't be changed back; it is one of the first applications > > of a useful idiom. > > > > The compiler bugs and limitations making that example uncompilable should be > > addressed. > > > > Walter, could you please take a look and assess the situation? We discussed > > the matter briefly on the phone and you agreed that the code is correct. > > > > > > Andrei > > > > David Simcha wrote: > > > Wait a minute, I see what's going on. Why did someone decide to nest the > > > Filter struct inside the filter() function? Should this just be changed > > > back? > > > > > > On 8/9/2010 9:20 AM, 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 > > > > > > > > I have no idea what this error message means, but I know I've never seen > > > > it before. AFAIK the only change to Filter since the last release has > > > > been adding a save() method. > > > > > > > > > > > > On 8/9/2010 2:19 AM, Walter Bright wrote: > > > > > > > > > > http://ftp.digitalmars.com/dmd1beta.zip > > > > > http://ftp.digitalmars.com/dmd2beta.zip > > > > > _______________________________________________ > > > > > dmd-beta mailing list > > > > > [email protected] > > > > > http://lists.puremagic.com/mailman/listinfo/dmd-beta > > > > > > > > > > > > > > > _______________________________________________ > > > dmd-beta mailing list > > > [email protected] > > > http://lists.puremagic.com/mailman/listinfo/dmd-beta > > _______________________________________________ > > dmd-beta mailing list > > [email protected] > > http://lists.puremagic.com/mailman/listinfo/dmd-beta > > > > > _______________________________________________ > dmd-beta mailing list > [email protected] > http://lists.puremagic.com/mailman/listinfo/dmd-beta > _______________________________________________ dmd-beta mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/dmd-beta
