Paste: out.txt

Author: k
Mode: text
Date: Thu, 5 May 2011 20:46:57
Plain Text |
0
0
0
0
0
--
0
1
2
3
4

Annotation: allocateArray

Author: k
Mode: text
Date: Thu, 5 May 2011 20:51:08
Plain Text |
main() {
    var xs = allocateArray(Int, 5);
    for (i, x in enumerated(xs))
        x = Int(i);
    freeArray(xs);
    xs = allocateArray(Int, 5);

    for (x in xs)
        println(x);

    for (i, x in enumerated(xs))
        x = Int(i);

    println("--");
    for (x in xs)
        println(x);

    freeArray(xs);
}

New Annotation

Summary:
Author:
Mode:
Body: