Re: Gee Functional iterators



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


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