[Issue 3386] New: to!bool(string) is not implemented
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 11 06:01:10 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3386
Summary: to!bool(string) is not implemented
Product: D
Version: 2.033
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: samukha at voliacable.com
--- Comment #0 from Max Samukha <samukha at voliacable.com> 2009-10-11 06:01:09 PDT ---
The following should work:
assert(!to!bool(s));
for s == "false" (and probably "False", "FALSE")
assert(to!bool(s));
for s == "true" ("True", "TRUE")
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list