[Vala] enums
- From: pancake <pancake youterm com>
- To: vala-list gnome org
- Subject: [Vala] enums
- Date: Mon, 9 Dec 2013 18:19:04 +0100
I have been doing some bindings for Vala and noticed something inconsistent in the naming of enums.
// VALID
enum Foo {
1FOO
}
// INVALID
enum Bar {
33
}
The thing is that you can name an enum like Foo.1FOO, but not Bar.33, if the reason to support enums prefixed
with a number is because the C translation doesnt breaks anything.. why do using numeric values breaks?
Is this defined by the Vala language or it’s just a bug?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]