Re: [Vala] Iterating over enums



I like that. Please open a bug^hfeature suggestion on bugzilla,
so we can further discuss there.

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 };



Cheers,

:M:




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