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