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 <[email protected]>

_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to