www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics



digitalmars.D.bugs - [Issue 2072] New: std.typeconv documentation anomaly

↑ ↓ ← d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2072

           Summary: std.typeconv documentation anomaly
           Product: D
           Version: 2.014
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: arkangath gmail.com


the example supplied for "fromString(...)" is incorrect:

Abc fromString(string s) { ... }

Should be:

bool fromString(string s, ref Abc) { ... }

"throws an exception in any other case" is incorrect.
Maybe someone forgot to add an overload case?

There is no documentation for
template Rebindable(T : Object)


-- 
May 06 2008
→ d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2072


andrei metalanguage.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Comment #1 from andrei metalanguage.com  2008-05-11 19:25 -------
(In reply to comment #0)
 the example supplied for "fromString(...)" is incorrect:
 
 Abc fromString(string s) { ... }
 
 Should be:
 
 bool fromString(string s, ref Abc) { ... }
 
 "throws an exception in any other case" is incorrect.
 Maybe someone forgot to add an overload case?
 
 There is no documentation for
 template Rebindable(T : Object)

I've noticed there are ambiguity issues with toString so I renamed the two functions into bool enumFromString(string, enum) and string enumToString(enum). I fixed the documentation too. I've added opDot to Rebindable and put some documentation for the thing up. Starting with the next release we'll have a functioning rebindable reference! --
May 11 2008
→ d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2072


andrei metalanguage.com changed:

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




------- Comment #2 from andrei metalanguage.com  2008-05-17 11:24 -------
Fixed in 2.014.


-- 
May 17 2008
→ d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2072





------- Comment #3 from bugzilla digitalmars.com  2008-05-22 05:04 -------
Fixed dmd 2.014


-- 
May 22 2008