[Issue 3945] New: AssertExpression message should implicitly convert to const char[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 12 22:27:15 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3945
Summary: AssertExpression message should implicitly convert to
const char[]
Product: D
Version: 2.041
Platform: All
URL: http://digitalmars.com/d/2.0/expression.html#AssertExp
ression
OS/Version: All
Status: NEW
Keywords: spec
Severity: normal
Priority: P2
Component: www.digitalmars.com
AssignedTo: nobody at puremagic.com
ReportedBy: jlquinn at optonline.net
--- Comment #0 from Jerry Quinn <jlquinn at optonline.net> 2010-03-12 22:27:13 PST ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list