Re: [Vala] anonymous structs or something similar?



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



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