Mercurial > projects > ddmd
comparison dmd/Lstring.d @ 169:e7769d53e750
Moves static variables from Module to Global
author | korDen |
---|---|
date | Thu, 30 Sep 2010 13:29:54 +0400 |
parents | e28b18c23469 |
children |
comparison
equal
deleted
inserted
replaced
168:ceed63f310fb | 169:e7769d53e750 |
---|---|
5 | 5 |
6 struct Lstring | 6 struct Lstring |
7 { | 7 { |
8 immutable(dchar_t)[] string_; | 8 immutable(dchar_t)[] string_; |
9 | 9 |
10 static Lstring zero; // 0 length string | 10 __gshared static const(Lstring) zero; // 0 length string |
11 | 11 |
12 // No constructors because we want to be able to statically | 12 // No constructors because we want to be able to statically |
13 // initialize Lstring's, and Lstrings are of variable size. | 13 // initialize Lstring's, and Lstrings are of variable size. |
14 | 14 |
15 version (M_UNICODE) { | 15 version (M_UNICODE) { |