Re: [Vala] Object constructors

2008-11-01 Thread Maciej Piechotka
Кутейников Дмитрий [EMAIL PROTECTED] writes: It would be great, if Vala could compile expressions like this: var bob = new Person(login=Bob, password=hello, email=[EMAIL PROTECTED]); Compiler may replace it with: var bob = new Person(); bob.login = Bob; bob.password =

Re: [Vala] Object constructors

2008-11-01 Thread Zeeshan Ali (Khattak)
Hi! On Sat, Nov 1, 2008 at 11:50 PM, Maciej Piechotka [EMAIL PROTECTED] wrote: Кутейников Дмитрий [EMAIL PROTECTED] writes: It would be great, if Vala could compile expressions like this: var bob = new Person(login=Bob, password=hello, email=[EMAIL PROTECTED]); Compiler may

Re: [Vala] Object constructors

2008-10-31 Thread Christian Hergert
Anything against the following? new Person () { login = Bob, password = hello, email = [EMAIL PROTECTED] }; Cheers, -- Christian 2008/10/31 Кутейников Дмитрий [EMAIL PROTECTED] It would be great, if Vala could compile expressions like this: *var bob = new Person(login=Bob,

Re: [Vala] Object constructors

2008-10-31 Thread Yu Feng
On Fri, 2008-10-31 at 12:16 -0700, Christian Hergert wrote: Anything against the following? new Person () { login = Bob, password = hello, email = [EMAIL PROTECTED] }; How much typings does it save you? Cheers, -- Christian 2008/10/31 Кутейников Дмитрий [EMAIL