Re: Static class members/methods and scope

2011-04-21 Thread Steven Schveighoffer
On Thu, 21 Apr 2011 04:54:49 -0400, Mike Parker wrote: I'm certain this used to work: class Foo { public static { void bar() {} } } But I've found that now, anything inside the public static block is not actually static. I get an error attempting to call Foo.bar(). I

Static class members/methods and scope

2011-04-21 Thread Mike Parker
I'm certain this used to work: class Foo { public static { void bar() {} } } But I've found that now, anything inside the public static block is not actually static. I get an error attempting to call Foo.bar(). If I do this: class Foo { public { static void