Re: [Vala] Iterating over enums



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]