Re: [Vala] [Genie] Problem with enums in genie
- From: Nicolas <c r n a wanadoo fr>
- To: jamie mccrack gmail com, vala-list gnome org
- Subject: Re: [Vala] [Genie] Problem with enums in genie
- Date: Tue, 28 Sep 2010 12:35:41 +0200
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]