comparison dmd/Id.d @ 170:96c0fff6897d

more global state cleanup
author korDen
date Thu, 30 Sep 2010 14:09:50 +0400
parents af1bebfd96a4
children fa9a71a9f5a8
comparison
equal deleted inserted replaced
169:e7769d53e750 170:96c0fff6897d
7 private string idgen(T...)(T ts) 7 private string idgen(T...)(T ts)
8 { 8 {
9 string res = "struct Id\n{\n"; 9 string res = "struct Id\n{\n";
10 10
11 foreach(entry; ts) 11 foreach(entry; ts)
12 res ~= "\tstatic Identifier " ~ entry.ident ~ ";\n"; 12 res ~= "\tstatic __gshared Identifier " ~ entry.ident ~ ";\n";
13 13
14 res ~= "\tstatic void initialize()\n\t{\n"; 14 res ~= "\tstatic void initialize()\n\t{\n";
15 string tmp; 15 string tmp;
16 foreach (entry; ts) 16 foreach (entry; ts)
17 { 17 {