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]");

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"; >

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 Кутейников Дмит

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

[Vala] Object constructors

2008-10-31 Thread Кутейников Дмитрий
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 = "hello"; **bob.email = "[EMAIL PROTECTED]";* ___