Re: [Vala] [PATCH] enum: foreach capability
- From: Jim Nelson <jim yorba org>
- To: Sebastian Reichel <sre ring0 de>
- Cc: vala-list gnome org
- Subject: Re: [Vala] [PATCH] enum: foreach capability
- Date: Tue, 10 Apr 2012 12:09:47 -0700
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 <sre ring0 de> wrote:
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 really no interest in having this in vala? It's quite
useful to fill e.g. Gtk.Combobox with values from the enum.
-- Sebastian
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]