digitalmars.D.bugs - [Issue 11011] New: struct core.time.Duration member this is not accessible
- d-bugmail puremagic.com (24/24) Sep 11 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11011
- d-bugmail puremagic.com (12/12) Sep 11 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11011
http://d.puremagic.com/issues/show_bug.cgi?id=11011 Summary: struct core.time.Duration member this is not accessible Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: thecybershadow gmail.com 16:56:26 EEST --- An example in core.time.Duration's documentation reads: assert(dur!"hnsecs"(27) == Duration(27)); However, attempting to compile this example (outside of core.datetime) results in the error message: struct core.time.Duration member this is not accessible Thus, either the constructor needs to be made public, or the documentation updated to fix or remove unusable examples. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 11 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11011 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg gmx.com PDT --- Well, it _is_ equivalent, and the example shows what it's doing, but no, the constructor is not supposed to be callable outside of core.time. So, that example should be removed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 11 2013