[Issue 5357] New: mixin templates accept strings as struct name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 18 16:08:55 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5357
Summary: mixin templates accept strings as struct name
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: gacek999 at tlen.pl
--- Comment #0 from Piotr Szturmaj <gacek999 at tlen.pl> 2010-12-18 16:07:03 PST ---
Compiles on D2.050:
mixin template GenStruct1(string name)
{
struct name
{
}
}
mixin template GenStruct2(alias name)
{
struct name
{
}
}
mixin GenStruct1!("test");
mixin GenStruct2!("test2");
--
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