Re: [Vala] Object constructors



Anything against the following?

new Person () {
    login = "Bob",
    password = "hello",
    email = "me gmail com"
};

Cheers,

-- Christian

2008/10/31 Кутейников Дмитрий <kuteynikov gmail com>
It would be great, if Vala could compile expressions like this:

var bob = new Person(login="Bob", password="hello", email="me gmail com");

Compiler may replace it with:

var bob = new Person();
bob.
login = "Bob";
bob.password = "hello";
bob.email = "me gmail com";


_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




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