Re: [Vala] Object constructors
- From: Yu Feng <rainwoodman gmail com>
- To: Christian Hergert <christian hergert gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Object constructors
- Date: Sat, 01 Nov 2008 01:29:10 -0400
On Fri, 2008-10-31 at 12:16 -0700, Christian Hergert wrote:
Anything against the following?
new Person () {
login = "Bob",
password = "hello",
email = "me gmail com"
};
How much typings does it save you?
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
_______________________________________________
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]