view tests/mini/foreach6.d @ 1553:f55ca8a1598c

Value::getNameStart and Value::getNameLength were removed
author Benjamin Kramer <benny.kra@gmail.com>
date Thu, 23 Jul 2009 20:34:35 +0200
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);
    }
}