Re: [Vala] Feature request: Syntactic sugar to map foo[index] to foo.get(index)



On Mon, 2010-03-01 at 13:07 +0100, Dr. Michael Lauer wrote:
Am 01.03.2010 um 11:21 schrieb Frederik:
T get (int index)           -> indexer access ('[index]')

What about the string lookup, i.e. gee's foo["bar"] ?

It's not limited to a single int parameter. The parameter can be of any
type, and you can even have multiple parameters (of mixed types).

Jürg




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