Re: [Vala] [PATCH] enum: foreach capability

2012-04-10 Thread Jim Nelson
I too would like to see this. Maybe Team Vala could take a look at the patch and comment? https://bugzilla.gnome.org/show_bug.cgi?id=624691 (Sebastian, I'm assuming the patch you attached to the above ticket is your latest code.) -- Jim On Fri, Mar 23, 2012 at 8:53 PM, Sebastian Reichel

Re: [Vala] [PATCH] enum: foreach capability

2012-04-10 Thread Kris Thomsen
I vote for this - nifty little feature :) // Kris Den 10. apr. 2012 23.53 skrev Sebastian Reichel s...@ring0.de: On Tue, Apr 10, 2012 at 12:09:47PM -0700, Jim Nelson wrote: I too would like to see this. Maybe Team Vala could take a look at the patch and comment?

Re: [Vala] [PATCH] enum: foreach capability

2012-03-23 Thread Sebastian Reichel
On Fri, Feb 24, 2012 at 05:46:17PM +0100, Sebastian Reichel wrote: Please consider applying the attached patch. It adds support for using foreach with enums like this (and closes #624691): foreach (Enum e in Enum.all_values) { stdout.printf (%s\n, e.to_string ()); } ping? Is there

Re: [Vala] [PATCH] enum: foreach capability

2012-03-23 Thread Nor Jaidi Tuah
ping? Is there really no interest in having this in vala? It's quite useful to fill e.g. Gtk.Combobox with values from the enum. Perhaps the vala team are currently looking at other issues and have missed your message or put it at the back of a long queue. As a vala user, I'm raising my hand

[Vala] [PATCH] enum: foreach capability

2012-02-24 Thread Sebastian Reichel
Hi, Please consider applying the attached patch. It adds support for using foreach with enums like this (and closes #624691): foreach (Enum e in Enum.all_values) { stdout.printf (%s\n, e.to_string ()); } -- Sebastian From f12ba46d78d1b3f448f8ef502b4bce970eced20f Mon Sep 17 00:00:00 2001