Re: [Vala] enums



yup, but C enums only supports integers :)

On Thu, Nov 08, 2007 at 02:53:00PM +0100, Xavier Bestel wrote:
On Thu, 2007-11-08 at 14:40 +0100, pancake wrote:
So, i think that definitions like:

public class Foo.Bar
{
   enum {
    OK = 0,
    ERR = 1,
    INT = 2
   }
}

should be converted into defines like:
  #define FOO_BAR_OK 0
  #define FOO_BAR_ERR 1

I'd prefer them to be converted to proper C enums (in this case,
probably enum foo_bar {}), that way I can see a symbolic value in a
debugger.

      Xav





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