[Vala] Array as big as an enum



Hi all:

I have an enum with several elements, and I need to create an array with
the same number of elements. In C I define a last element with a known
name (eg: "LAST_ELEMENT"), and use "int blah[LAST_ELEMENT];" to create
the array. How can I do that in Vala?

Thanks.

-- 
Nos leemos
                         RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com



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