Re: [Vala] Array as big as an enum
- From: rastersoft <raster rastersoft com>
- To: vala <vala-list gnome org>
- Subject: Re: [Vala] Array as big as an enum
- Date: Mon, 29 Aug 2016 23:47:48 +0200
Sorry, I found how to do that:
int[] blah = new int[LAST_ELEMENT];
El 29/08/16 a las 23:45, rastersoft escribió:
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]