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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Max Samukha <[email protected]> 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: -------