view tests/mini/foreach6.d @ 767:eb1ce70ee01c

D2: forgot to revert some changes made for testing last fix...
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 12 Nov 2008 05:43:12 +0100
parents 30b42a283c8e
children
line wrap: on
line source

module mini.foreach6;

struct S
{
    long l;
    float f;
}

void main()
{
    S[4] arr = void;
    foreach(i,v;arr) {
        v = S(i, i*2.5);
    }
}