www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2910] New: ~= can append array literals to strings.

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

           Summary: ~= can append array literals to strings.
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: clugdbug yahoo.com.au


void main()
{
   char [] s;
   s ~= [0x313233L, 0x44];
}

D2 only, D1 correctly rejects it.


-- 
Apr 29 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2910






I'm not sure I fully understand this bug, but if I do understand it correctly,
it's a dup of bug 2892.  Please see whether this is the case.


-- 
Apr 29 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2910


clugdbug yahoo.com.au changed:

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






 I'm not sure I fully understand this bug, but if I do understand it correctly,
 it's a dup of bug 2892.  Please see whether this is the case.
Yup, it's the same. Although I think it only applies when the literal is an integral array literal. *** This bug has been marked as a duplicate of 2892 *** --
Apr 29 2009