Re: [Vala] interface properties support construct?

2010-02-06 Thread Darren Shepherd
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 wrote: > Hi, > > 2010/2/1, Darren Shepherd : >> 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

Re: [Vala] interface properties support construct?

2010-02-06 Thread Abderrahim Kitouni
Hi, 2010/2/1, Darren Shepherd : > 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 generall

[Vala] interface properties support construct?

2010-02-01 Thread Darren Shepherd
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. i.vala: public interface IDInterface : Object { public abstract string id { get; construct; } } o.vala: public clas

Re: [Vala] Interface properties: private accessors

2008-11-30 Thread Ildar Mulyukov
On 27.11.2008 10:39:27, Ildar Mulyukov wrote: % valac cl1.vala if2.vala /tmp/.private/ildar/cc8mGVTD.o: In function `ns1_cl1_constructor': cl1.c:(.text+0x160): undefined reference to `ns1_i1_set_str1' Why this stupid compiler tries to use _interface's_accessor_? Any comments? This is what happ

Re: [Vala] Interface properties

2008-11-26 Thread Ildar Mulyukov
On 22.11.2008 18:12:06, Ildar Mulyukov wrote: Hello, just another one try to use a property in an interface. ... 2. Because of the point 1, one have to write such strange things as: public string str1 { get; private set; } Though it doesn't work either (i.e. valac cl1.vala if2.

[Vala] Interface properties

2008-11-22 Thread Ildar Mulyukov
). I hope that the patch of Alexander Bokovoy will fix that (see that letter): Subject:Re: [Vala] interface properties: unexistent accessor Date: 17.11.2008 13:08:20 GMT+6 What do you think about changing this in Vala - to how it woks in C#: 1. Implementation

Re: [Vala] interface properties: unexistent accessor

2008-11-17 Thread Alexander Bokovoy
On Mon, Nov 17, 2008 at 11:35 AM, Ildar Mulyukov <[EMAIL PROTECTED]> wrote: I discovered the problem (and created this simple test case). The root of it is that the unexistent accessor referenced from the implementor class. Maybe it's better not to do it? >>> >>> Which vala bui

Re: [Vala] interface properties: unexistent accessor

2008-11-17 Thread Ildar Mulyukov
On 17.11.2008 13:08:20, Alexander Bokovoy wrote: On Sun, Nov 16, 2008 at 8:17 PM, Alexander Bokovoy <[EMAIL PROTECTED]> wrote: > 2008/11/16 Ildar Mulyukov <[EMAIL PROTECTED]>: >> valac test-iface-prop-noset-impl.vala >> test-iface-prop-noset-iface.vala/tmp/.private/ildar/ccIVSzoO.o: In functi

Re: [Vala] interface properties: unexistent accessor

2008-11-16 Thread Alexander Bokovoy
On Sun, Nov 16, 2008 at 8:17 PM, Alexander Bokovoy <[EMAIL PROTECTED]> wrote: > 2008/11/16 Ildar Mulyukov <[EMAIL PROTECTED]>: >>Hello, >> >> valac test-iface-prop-noset-impl.vala >> test-iface-prop-noset-iface.vala/tmp/.private/ildar/ccIVSzoO.o: In function >> `ns1_class1_set_property': >>

Re: [Vala] interface properties: unexistent accessor

2008-11-16 Thread Alexander Bokovoy
2008/11/16 Ildar Mulyukov <[EMAIL PROTECTED]>: >Hello, > > valac test-iface-prop-noset-impl.vala > test-iface-prop-noset-iface.vala/tmp/.private/ildar/ccIVSzoO.o: In function > `ns1_class1_set_property': > test-iface-prop-noset-impl.c:(.text+0x482): undefined reference to > `ns1_interface1_

[Vala] interface properties: unexistent accessor

2008-11-16 Thread Ildar Mulyukov
Hello, valac test-iface-prop-noset-impl.vala test-iface-prop-noset-iface.vala/tmp/.private/ildar/ccIVSzoO.o: In function `ns1_class1_set_property': test-iface-prop-noset-impl.c:(.text+0x482): undefined reference to `ns1_interface1_set_name' I discovered the problem (and created th