Re: [Vala] enums
- From: Xavier Bestel <xavier bestel free fr>
- To: pancake <pancake youterm com>
- Cc: vala paldo org
- Subject: Re: [Vala] enums
- Date: Thu, 08 Nov 2007 14:53:00 +0100
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]