On Wed, May 6, 2009 at 2:42 PM, Sam Liddicott <[email protected]> wrote:
> 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 :-(
{
FileInfo fileinfo;
while(null != (fileinfo = enumerator.next_file(null)))
{
// stuff
}
}// ?
--
http://homes.eff.org/~barlow/EconomyOfIdeas.html
http://www.dreamsongs.com/MobSoftware.html
http://www.gnu.org/philosophy/shouldbefree.html
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list