Re: [Vala] anonymous structs or something similar?



This is not anonymous.

Expect us

On 14/06/2011, at 17:27, Luca Bruno <lethalman88 gmail com> wrote:

On Tue, Jun 14, 2011 at 05:14:53PM +0200, Jan Spurný wrote:
Is this or something close to this possible somehow in vala?

public struct TableItem {
 public string name;
 public int    data;
}

void main () {
       const TableItem items[] = {
               {"foo", 1},
               {"bar", 2}
       };
}

-- 
http://www.debian.org - The Universal Operating System
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




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