Re: Gee Functional iterators



On 13/07/10 16:08, Martin DeMello wrote:
> On Tue, Jul 13, 2010 at 7:21 PM, Maciej Piechotka <uzytkownik2 gmail com> wrote:
>> On 13/07/10 13:17, Martin DeMello wrote:
>>>
>>> I'm new to vala in general; could someone explain why adding methods
>>> to, say, Iterable would break the API?
>>
>> Because method add to interface means any class which implemented the
>> interface must implement additional method. Which it currently does not
>> implement.
> 
> But can't the methods be defined as concrete in the interface, the way
> ruby does it? All it requires is foreach.
> 
> martin

Currently no. But the bug I posted is about adding this functionality to
Vala. Currently Vala interfaces are more Java/C#-like.

Regards

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]