Bug 3386 – to!bool(string) is not implemented

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-10-11T06:01:00Z
Last change time
2015-06-09T01:29:41Z
Assigned to
bugzilla
Creator
samukha

Comments

Comment #0 by samukha — 2009-10-11T06:01:09Z
The following should work: assert(!to!bool(s)); for s == "false" (and probably "False", "FALSE") assert(to!bool(s)); for s == "true" ("True", "TRUE")
Comment #1 by bugzilla — 2010-06-15T01:43:00Z
Comment #2 by bugzilla — 2010-08-11T02:43:28Z
Fixed DMD 2.048