Compiler error with static vars/functions

2012-02-09 Thread Oliver Plow
Hello, I'm fighting with a strange compiler error. This here compiles and runs fine: -- main.d - class Foo { static int z = 4; static int bar() { return 6; } int foobar() { return 7; } } int main(string[] argv) { writeln(Foo.z); writeln(Foo.bar()); // pro

Re: Compiler error with static vars/functions

2012-02-09 Thread Oliver Plow
avis" > An: "digitalmars.D.learn" > Betreff: Re: Compiler error with static vars/functions > On Thursday, February 09, 2012 14:57:08 Oliver Plow wrote: > > Hello, > > > > I'm fighting with a strange compiler error. This here compiles and runs &g