Bug 2072 – std.typeconv documentation anomaly

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-05-06T06:15:00Z
Last change time
2015-06-09T01:21:36Z
Assigned to
andrei
Creator
arkangath

Comments

Comment #0 by arkangath — 2008-05-06T06:15:43Z
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)
Comment #1 by andrei — 2008-05-11T19:25:37Z
(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!
Comment #2 by andrei — 2008-05-17T11:24:15Z
Fixed in 2.014.
Comment #3 by bugzilla — 2008-05-22T05:04:17Z
Fixed dmd 2.014