[Issue 24548] New: [spec] Boolean condition conversion is not documented
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 12 15:57:15 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24548
Issue ID: 24548
Summary: [spec] Boolean condition conversion is not documented
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: minor
Priority: P1
Component: dlang.org
Assignee: nobody at puremagic.com
Reporter: nick at geany.org
E.g. for IfStatement, the spec just says:
> Expression is evaluated. The result is converted to a boolean, using opCast!bool() if the method is defined.
That is insufficient information. It should specify which types can be
converted to bool, and how.
PR incoming.
--
More information about the Digitalmars-d-bugs
mailing list