Re: [Vala] initializing structures



* Cliff Brake wrote, On 03/09/08 21:38:
Looking at the Vala test code, I realized the syntax should be:
...
    mystruct[] my_a = {
        mystruct() {test1 = "this is a test", test2 = 10},
        mystruct() {test1 = "this is a test"},
        mystruct() {test2 = 12}
    };
  

Wow. That's weird.

Sam



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