Thread overview
[Issue 8428] New: [2.060 beta] ByLine -> Map -> Filter
Jul 25, 2012
David Simcha
Jul 25, 2012
Brad Anderson
Jul 25, 2012
Jonathan M Davis
Jul 25, 2012
Brad Anderson
Jul 25, 2012
Jonathan M Davis
Jul 29, 2012
Walter Bright
Jul 29, 2012
Jonathan M Davis
July 25, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8428

           Summary: [2.060 beta] ByLine -> Map -> Filter
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: dsimcha@yahoo.com


--- Comment #0 from David Simcha <dsimcha@yahoo.com> 2012-07-24 19:25:09 PDT ---
import std.algorithm, std.stdio;

void main() {
    File("").byLine().map!"a"().filter!"a.length"();
}

src\phobos\std\algorithm.d(1142): Error: function
std.algorithm.map!("a").map!(ByLine!(char,char)).map is a nested function and
cannot be accessed from
std.algorithm.filter!("a.length").filter!(Result).filter

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 25, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8428


Brad Anderson <eco@gnuk.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eco@gnuk.net


--- Comment #1 from Brad Anderson <eco@gnuk.net> 2012-07-24 19:31:22 PDT ---
Isn't this the same as the other regression #5939?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 25, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8428


Jonathan M Davis <jmdavisProg@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg@gmx.com


--- Comment #2 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-07-24 20:21:38 PDT ---
> Isn't this the same as the other regression #5939?

Yeah. It looks like it's probably either the same as bug #5939 or bug# 5941, which are _really_ annoying bugs.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 25, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8428



--- Comment #3 from Brad Anderson <eco@gnuk.net> 2012-07-24 21:28:33 PDT ---
(In reply to comment #2)
> > Isn't this the same as the other regression #5939?
> 
> Yeah. It looks like it's probably either the same as bug #5939 or bug# 5941, which are _really_ annoying bugs.

They are indeed. I hit bug #5941 just the other day doing the lambda changes in std.algorithm.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 25, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8428



--- Comment #4 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-07-24 21:36:29 PDT ---
It's part of the cause of bug# 8339, which is what's really causing me trouble for some of what I've been trying to do of late.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 29, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8428


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #5 from Walter Bright <bugzilla@digitalmars.com> 2012-07-29 14:54:45 PDT ---
Then this is not a regression?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 29, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8428



--- Comment #6 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-07-29 15:20:20 PDT ---
> Then this is not a regression?

It compiles in dmd 2.059 and doesn't compile in 2.060, so it looks like a regression to me.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 30, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8428


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrei@metalanguage.com
         Resolution|                            |FIXED


--- Comment #7 from Andrei Alexandrescu <andrei@metalanguage.com> 2012-07-30 13:07:54 PDT ---
This now compiles with Kenji's fix for http://d.puremagic.com/issues/show_bug.cgi?id=5939.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------