www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3945] New: AssertExpression message should implicitly convert to const char[]

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: jlquinn optonline.net


--- Comment #0 from Jerry Quinn <jlquinn 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: -------
Mar 12 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3945


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2010-05-05
11:02:00 PDT ---
changeset 1498

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 05 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3945


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED


--- Comment #2 from Don <clugdbug yahoo.com.au> 2010-05-18 12:17:06 PDT ---
FixedDMD2.046.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 18 2010