[Vala] static initializers



Hi list :)

I was wondering if Vala supports 'static initializers' like in java
where you can do:
class Foo {
 static {
   bar();
 }
}

I have a vague memory of GObject having this kind of feature. The
syntax above failed but that was a stab in the dark anyway.



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