www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4411] New: ranges + auto functions don't work

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4411

           Summary: ranges + auto functions don't work
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: ellery-newcomer utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer utulsa.edu> 2010-07-01
09:04:01 PDT ---
import std.range;
import std.array;
struct X{
    string s;
     property front(){
        return s.front;
    }
     property void popFront(){
        s.popFront;
    }
     property bool empty(){
        return s.empty;
    }
}

static assert(isInputRange!(X));



fails, though I can't for the life of me figure out why

dmd 2.047

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 01 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4411


David Simcha <dsimcha yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsimcha yahoo.com
         Depends on|                            |3294


--- Comment #1 from David Simcha <dsimcha yahoo.com> 2010-07-01 09:10:48 PDT ---
I'm almost sure this is related to bug 3294.  Adding as a dependency.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 01 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4411


David Simcha <dsimcha yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from David Simcha <dsimcha yahoo.com> 2010-08-14 18:49:24 PDT ---
Fixed 2.048, since 3294 got fixed.

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