Re: [Vala] foreach performance
- From: Jürg Billeter <j bitron ch>
- To: Кутейников Дмитрий <kuteynikov gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] foreach performance
- Date: Wed, 17 Dec 2008 14:04:14 +0100
On Tue, 2008-12-16 at 17:58 +0300, Кутейников Дмитрий wrote:
Why there are no operator to remove current object in foreach block?
foreach is meant to be used for read-only iteration over a collection as
this is very common. It's really just a bit syntactic sugar. If you need
more features, use a while loop with an appropriate iterator.
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]