Re: [Vala] Iterating over enums
- From: tomw <tomw ubilix com>
- To: Reid Thompson ateb com
- Cc: vala-list gnome org
- Subject: Re: [Vala] Iterating over enums
- Date: Fri, 30 Sep 2011 22:28:52 +0200
I was aware of this post, I was looking for a solution however, which
would not require the manual and therefore error prone maintenance of an
array:
public static Suit[] all() {
return { SPADE, HEART, DIAMOND, CLUB };
http://blog.yorba.org/jim/2011/05/a-few-of-my-favorite-vala-things-enums.html
may be of interest
--
tomw <tomw ubilix com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]