I started learning the D programming language(it's pretty awesome), and ran into a slight problem when I started to explore functions. The setup is pretty basic; it's just a way to figure out the similarities of the language to others that I have used. Here is my class declaration:
module TestClass;
import std.string;
class TestClass
{
this()
{
// Constructor code
}
public static string getData(){
return "Test";
}
};
and here is my main:
module main;
import std.stdio;
import std.string;
import TestClass;
void main(string[] args)
{
writeln(TestClass.getData());
stdin.readln();
}
There seems to be an issue with calling the static function in TestClass. I get a "undefined identifier" error. Here is a picture:

Does anyone know what I am doing wrong? I tried looking through the documentation on the digital mars website, but to be honest it is a little counter-intuitive.