Bug 3945 – AssertExpression message should implicitly convert to const char[]

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-03-12T22:27:00Z
Last change time
2014-02-15T02:44:21Z
Keywords
spec
Assigned to
nobody
Creator
jlquinn

Comments

Comment #0 by jlquinn — 2010-03-12T22:27:13Z
AssertExpression states that a message if given must be convertible to char[]. That would prevent the use of a string constant in AssertExpression, since it is (immutable)char[] and not implicitly convertible to char[]. Here's the existing text: The second Expression, if present, must be implicitly convertible to type char[]. It is evaluated if the result is false, and the string result is appended to the AssertError's message.
Comment #1 by bugzilla — 2010-05-05T11:02:00Z
changeset 1498
Comment #2 by clugdbug — 2010-05-18T12:17:06Z
FixedDMD2.046.