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


--- Comment #0 from SHOO <zan77137 nifty.com> 2013-06-16 06:47:58 PDT ---
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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-06-16 22:51:21 PDT ---
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



--- Comment #2 from github-bugzilla puremagic.com 2013-06-19 17:35:43 PDT ---
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
Merge pull request #1350 from 9rnsr/fix10377

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