www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10377] New: std.typecons.wrap doesn't consider private members

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

           Summary: std.typecons.wrap doesn't consider private members
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: zan77137 nifty.com



This code should be work (in git master head):
---------------------------------
import std.stdio, std.range, std.typecons;

interface MyInputRange(T)
{
     property T front();
    void popFornt();
     property bool empty();
}

void main()
{
    writeln(iota(0,10,1).inputRangeObject().wrap!(MyInputRange!int)());
}

----------------
RESULT;
Error: class std.range.InputRangeObject!(Result).InputRangeObject member _range
is not accessible
:
:

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 16 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10377


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid



https://github.com/D-Programming-Language/phobos/pull/1350

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 16 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10377




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/cc4cf0ca152335665439f5aa8cd81914e2643f89
fix Issue 10377 - std.typecons.wrap doesn't consider private members

https://github.com/D-Programming-Language/phobos/commit/fdbf4f32c17834d172b199493e79c95e950e906d


Issue 10377 - std.typecons.wrap doesn't consider private members

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 19 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10377


Kenji Hara <k.hara.pg gmail.com> changed:

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


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