static functions?

p0xel pixartist at gmail.com
Sun May 20 14:17:12 PDT 2012


I pretty sure I'm an idiot.

[code]
class foo {
	public static int bar() {
		return 0;
	}
}
[/code]

How do I call bar() without creating an instance of foo? 
foo.bar() results in "Error: undefined identifier 'bar'"

I'm having a really hard time finding anything related to D in 
general.


More information about the Digitalmars-d-learn mailing list