I prefer:
while ((FileInfo fileinfo = enumerator.next_file(null)) != null)
{
stdout.printf("%s\n", fileinfo.get_name());
}Which allows you to have a fake scope surrounding the loop to keep the loop variable temporary to the loop. I don't know any language that likes it though :-( Sam _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
