Re: [Vala] Object constructors



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]