Re: [Vala] Feature request: Syntactic sugar to map foo[index] to foo.get(index)
- From: Jürg Billeter <j bitron ch>
- To: Frederik <scumm_fredo gmx net>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Feature request: Syntactic sugar to map foo[index] to foo.get(index)
- Date: Mon, 01 Mar 2010 11:56:09 +0100
On Mon, 2010-03-01 at 11:21 +0100, Frederik wrote:
Can you give us a list of the compile-time "duck typing" protocols?
Iterator<T> iterator () -> 'foreach'
T? next_value () -> alternative 'foreach' iterator protocol
T get (int index) -> indexer access ('[index]')
void set (int index, T item)
bool contains (T needle) -> 'in' operator
T slice (long start, long end) -> slicing ('[start:end]')
string to_string () -> string templates
Am I missing something?
I don't think so, this list appears to be complete.
Regards,
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]