summaryrefslogtreecommitdiff
path: root/src/test/java/com/seaofnodes/simple/spill/Chapter21Test-testPerson.smp
blob: 09285034535296c31e4b71bea7b0473668ab8dd6 (plain)
1
2
3
4
5
6
7
8
9
// -*-java-*-
struct Person {
    int age;
};

val fcn = { !Person?[] ps, int x ->
    if( ps[x] )
        ps[x].age++;
};