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
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 in support
of enum.foreach. But I prefer this syntax:
foreach (Enum e) {
....
}
and let the compiler automatically fill in the "... in Enum.all_values).
hand
Nor Jaidi Tuah
_______________________________________________
vala-list mailing list
vala...@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
> _______________________________________________
> vala-list mailing list
> vala...@gnome.org
> http://mail.gnome.org/mailman/listinfo/vala-list
I'm interested in having this but sadly can't help you get it in. The bug repository is also has quite a few patches that appear to have never been applied for whatever reason.