[Issue 6462] New: mixin() should accept arrays of char, as well as string literals
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 10 02:52:31 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6462
Summary: mixin() should accept arrays of char, as well as
string literals
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2011-08-10 02:52:19 PDT ---
This test case comes from bug 6457. Not a regression, this has never worked.
const char[] bug6462 = ['i','n','t',' ','a',';'];
static assert(bug6462 == "int a;"); // OK
mixin(bug6462);
test3.d(3): Error: argument to mixin must be a string, not (['i','n','t','
','a'
,';'])
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list