www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2169] New: Can't concat non-char[] string literal and char literal

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

           Summary: Can't concat non-char[] string literal and char literal
           Product: D
           Version: 1.031
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: jarrett.billingsley gmail.com


auto x = "foo"w ~ 'x';
auto y = "foo"d ~ 'x';
auto z = 'x' ~ "foo"w;
auto w = 'x' ~ "foo"d;

All four give an error about not being able to concat a w/dchar[] with an int
(int?!).  Pretty amazing.


-- 
Jun 24 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2169


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfj1esp02 sneakemail.com


--- Comment #1 from yebblies <yebblies gmail.com> 2011-09-07 18:49:55 EST ---
*** Issue 3126 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 07 2011