Re: [Vala] [Genie] Problem with enums in genie



Hi,

Thanks you Jamie, i can access my enum !

I have a simple question about enum, why if i change 'value1 = 15' by 'value1 = "15"', valac does not return an error, only gcc (error: enumerator value for 'ENUM_TEST_value1' is not an integer constant)

[indent=4]

enum EnumTest
    value1 = 15

init
    print ("%d", EnumTest.value1)

Thanks in advance,
Nicolas.



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