Re: [Vala] warning: Foo.new never used



On Thu, 2009-01-15 at 05:16 -0800, Adam Dingle wrote:
class Foo {
    Foo() {
        stdout.puts("construct\n");
    }
   
    void hello() {
        stdout.puts("hello\n");
    }
   
    static int main(string[] args) {
        Foo f = new Foo();
        f.hello();
        return 0;
    }
}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]