Re: [Vala] Object constructors



Hi!

On Sat, Nov 1, 2008 at 11:50 PM, Maciej Piechotka <uzytkownik2 gmail com> wrote:
"Кутейников Дмитрий"
<kuteynikov gmail com> writes:

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

  Jurg told me that he has plans for supporting named parameters at
some point but i guess that will come after vala supports var args?

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124


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