Re: [Vala] Signal questions, Compilation problem
- From: Jürg Billeter <j bitron ch>
- To: Cayle Graumann <cayle graumann gmail com>
- Cc: vala paldo org
- Subject: Re: [Vala] Signal questions, Compilation problem
- Date: Tue, 12 Sep 2006 12:47:50 +0200
On Mon, 2006-09-11 at 13:24 -0500, Cayle Graumann wrote:
Also,
In the C header file, there is an enum list containing error
codes. If I duplicate this enum in the vala binding, I end up
with a copy of the enum declared which won't compile by the C
compiler. Is there an annotation that I'm missing that prevents valac
from emitting a block into the C code?
If the enum is in a VAPI file the compiler shouldn't emit anything. It's
planned to add an attribute to control code emission within a normal
vala source file but that hasn't been implemented yet.
Also, here is another bug for your list in the enum code
This will not compile by valac
enum MyEnum {
SUCCESS,
ERROR1,
ERROR10 = 10
}
It does not like the assignment.
Yes, right, this is not yet supported. It doesn't matter for VAPI files,
though, as the compiler doesn't care about the value there.
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]