Mercurial > projects > ldc
view test/foreach1.d @ 79:875617f89c51 trunk
[svn r83] Fixed: Returning a struct from within the try block of a try-finally was broken.
author | lindquist |
---|---|
date | Wed, 31 Oct 2007 22:20:19 +0100 |
parents | bc641b23a714 |
children | d9d5d59873d8 |
line wrap: on
line source
module foreach1; import std.stdio; void main() { static arr = [1,2,3,4,5]; writef("forward"); foreach(v;arr) { writef(' ',v); } writef("\nreverse"); foreach_reverse(v;arr) { writef(' ',v); } writef("\n"); }