www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 478] New: can't compare arrayliteral statically with variable

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=478

           Summary: can't compare arrayliteral statically with variable
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: lovesyao hotmail.com


don't work:
const char[] test=['a','b','c','d'];
static assert(test==['a','b','c','d']);

work:
static assert(['a','b','c','d']==['a','b','c','d']);


-- 
Nov 03 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=478


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2006-11-25 04:02 -------
Fixed DMD 0.175


-- 
Nov 25 2006