[Vala] [Genie] simple string example no longer compiles



Hi guys,
There is a very simple Genie program that compiled ok early in 2009:

init
        var s = new string
        s += "My name is Barry"
        print s

I have got Vala out of git yesterday, and the above program will not
compile, with this error:

arrays.gs:2.10-2.19: error: `string' does not have a default constructor
        var s = new string

Could someone explain this to me? I don't understand why this code was
ok before but no longer.

Regards,
Barry Kauler



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