Paste: oddness

Author: pruned
Mode: text
Date: Wed, 10 Nov 2010 12:52:38
Plain Text |
record Foo(
    f : UInt32,
    i : Int,
    j : Int,
    n : Int,
    m : Int,
);

printBug(a)
{
    var s = String();

    ref  x = s;
 
    printTo(x,  "%");
    printTo(x,  "[");
    printTo(x,  a.i);
    printTo(x,  ":");
    printTo(x,   a.n);
    printTo(x,  ", ");
    printTo(x,   a.j);
    printTo(x,   ":");
    printTo(x,  a.m);
    printTo(x,  "]");
    
    return move(s);
}

main()
{
    var z = Foo();
    println(printBug(z));
}

New Annotation

Summary:
Author:
Mode:
Body: