www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3707] New: comma-terminated array initializers not allowed with mixin

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

           Summary: comma-terminated array initializers not allowed with
                    mixin
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrei metalanguage.com



23:22:48 PST ---
This works:

string[] stopwords = mixin("[" ~ `"a","b"` ~ "]");

This works too:

string[] stopwords = ["a","b",];

But this doesn't:

string[] stopwords = mixin("[" ~ `"a","b",` ~ "]");

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 14 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3707


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com
           Platform|Other                       |All
            Version|2.038                       |D1
         OS/Version|Mac OS X                    |All



This work correctly on D2, not on D1

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