Re: [Vala] Ducktyped foreach
- From: Philip Van Hoof <spam pvanhoof be>
- To: Michel Salim <michel sylvan gmail com>
- Cc: Vala paldo org
- Subject: Re: [Vala] Ducktyped foreach
- Date: Fri, 14 Sep 2007 10:11:07 +0200
On Fri, 2007-09-14 at 01:50 -0400, Michel Salim wrote:
Hi Philip,
On 13/09/2007, Philip Van Hoof <spam pvanhoof be> wrote:
In .NET you have Ducktyped foreach stuff. This means that you don't need
to implement IEnumerable to be usable with foreach statements:
/me wondering if this is not a C# hack because IEnumerable /
IEnumerator was not generics-enabled .. scary!
I think one of the important reasons is to make value types like structs
also enumeratable. Vala could support iteratable value types too this
way.
--
Philip Van Hoof, software developer
home: me at pvanhoof dot be
gnome: pvanhoof at gnome dot org
http://www.pvanhoof.be/blog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]