[Issue 1626] bool spec problem
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 29 07:10:15 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1626
matti.niemenmaa+dbugzilla at iki.fi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Keywords| |spec
Resolution| |INVALID
------- Comment #1 from matti.niemenmaa+dbugzilla at iki.fi 2007-10-29 09:10 -------
I think it's clear, in that it says "must have a type that can be converted to
a boolean".
It doesn't say "must have a type that can be *implicitly* converted to a
boolean", because that's not the case.
The type needs to be convertible in that if you cast it to bool *explicitly*,
it works. C.f. the following:
bool b = cast(bool)3;
--
More information about the Digitalmars-d-bugs
mailing list