Re: [Vala] interface properties support construct?
- From: Darren Shepherd <darren s shepherd gmail com>
- To: Abderrahim Kitouni <a kitouni gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] interface properties support construct?
- Date: Sat, 6 Feb 2010 09:00:24 -0500
I created a bug https://bugzilla.gnome.org/show_bug.cgi?id=609164
Thanks,
Darren
On Sat, Feb 6, 2010 at 3:09 AM, Abderrahim Kitouni <a kitouni gmail com> wrote:
Hi,
2010/2/1, Darren Shepherd <darren s shepherd gmail com>:
I'm pretty new to vala, so I'm not sure if the following is a bug, or
that the following syntax is not supported. I'm using 0.7.9 from the
vala-team-ppa on Ubuntu karmic.
it's a bug, vala should either generate correct code, or report an
error. But generally, if something doesn't work, it's because it's non
obvious, and may be unsupported.
The above is reproducible only when the interface and object are in
different vala source files.
This is definitely a bug, something public that is used in the second
file isn't declared.
adding:
const char* id_interface_get_id (IDInterface* self);
void id_interface_set_id (IDInterface* self, const char* value);
after:
GType id_interface_get_type (void);
in the generated C files solves the problem, so it shouldn't be very
difficult to fix, it just needs someone who is familiar with the
codegen.
(You should probably file a bug in bugzilla about this so it doesn't get lost)
HTH,
Abderrahim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]