Re: [Vala] interfaces sharing methods

2012-06-05 Thread Luca Bruno
On Tue, Jun 5, 2012 at 7:08 PM, Simon Busch  wrote:

> I got at a point recently where I had the same problem. Is this going to
> be happen in Vala anytime soon (say 0.18)?
>

It's planned for sure, but don't know when.

-- 
www.debian.org - The Universal Operating System
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] interfaces sharing methods

2012-06-05 Thread Simon Busch
On 05.06.2012 12:33, Luca Bruno wrote:
>> Recently I run into a problem of interfaces sharing methods.
>>
>> I have two interfaces that have method of the same name, same result, same
>> parameter list - it is done on purpose this way, so interfaces would
>> require such method to be implemented.
>>
>>
> Vala doesn't support it yet. See
> https://bugzilla.gnome.org/show_bug.cgi?id=652098

I got at a point recently where I had the same problem. Is this going to
be happen in Vala anytime soon (say 0.18)?

regards,
Simon

-- 
Simon Busch - http://mm.gravedo.de/blog/
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] interfaces sharing methods

2012-06-05 Thread Luca Bruno
On Sat, Jun 2, 2012 at 10:35 PM, Jarosław Ciupiński wrote:

> Hi,
>
> Recently I run into a problem of interfaces sharing methods.
>
> I have two interfaces that have method of the same name, same result, same
> parameter list - it is done on purpose this way, so interfaces would
> require such method to be implemented.
>
>
Vala doesn't support it yet. See
https://bugzilla.gnome.org/show_bug.cgi?id=652098


-- 
www.debian.org - The Universal Operating System
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


[Vala] interfaces sharing methods

2012-06-02 Thread Jarosław Ciupiński
Hi,

Recently I run into a problem of interfaces sharing methods.

I have two interfaces that have method of the same name, same result, same
parameter list - it is done on purpose this way, so interfaces would
require such method to be implemented.

It compiles fine. But it crushes when run. I checked c code and found out
that although both interfaces are defined fine, when they are set up, only
one of them has shared method set up properly. Other one doesn't mention
the method (so it is either 0 or undefined, I didn't check that).

I would love to have it working by setting up shared method properly for
both interfaces (that would be great and would be another unique and useful
thing in vala), although disallowing that by throwing an error during
compilation could also be fine as you can work around it by creating third
interface and making it a prerequisite for both interfaces.

Regards,

Jarek Ciupinski

(I love vala for two reasons: 1 it is a language that makes lots of things
easier, 2 I have no problems with using same code under both Windows and
Linux - it is maybe worth mentioning that I work on a game and it isn't
main purpouse of vala creation and I don't know if it was considered as a
language for game creation).
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list