On 15-07-2012 17:56, Alexandr Druzhinin wrote:
class A { } __gshared A a;void main(string[] args) { a = new A; }
Seems to work for me? (This use of __gshared is perfectly fine, btw.)
alexrp@alexrp ~/Projects/tests $ cat test.d
class A {
}
__gshared A a;
void main(string[] args) {
a = new A;
}
alexrp@alexrp ~/Projects/tests $ rdmd test.d
alexrp@alexrp ~/Projects/tests $
--
Alex Rønne Petersen
[email protected]
http://lycus.org
