September 11, 2013 [Issue 11011] New: struct core.time.Duration member this is not accessible | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from Vladimir Panteleev <thecybershadow@gmail.com> 2013-09-11 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: ------- |
September 11, 2013 [Issue 11011] struct core.time.Duration member this is not accessible | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | http://d.puremagic.com/issues/show_bug.cgi?id=11011 Jonathan M Davis <jmdavisProg@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg@gmx.com --- Comment #1 from Jonathan M Davis <jmdavisProg@gmx.com> 2013-09-11 09:48:16 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: ------- |
Copyright © 1999-2021 by the D Language Foundation