Mercurial > projects > ldc
view test/foreach7.d @ 162:1856c62af24b trunk
[svn r178] Fixed codegen values for function arguments, the old approach was completely broken, amazing it even worked...
author | lindquist |
---|---|
date | Mon, 05 May 2008 00:56:53 +0200 |
parents | b706170e24a9 |
children |
line wrap: on
line source
module foreach7; void main() { int[4] a = [1,2,3,4]; int i; foreach(v; a[0..3]) { i += v; } assert(i == 6); }