Paste: sample code using the permissive record constructor

Author: kssreeram
Mode: text
Date: Sun, 29 Aug 2010 16:24:00
Plain Text |
record Foo {
    a : Int8;
    b : UInt32;
    c : Pointer[Int];
    d : Pointer[Int8];
}

overload PermissiveRecordConstructor?(static Foo) = true;

main() {
    var f = Foo(1, 2, 0, "hello");
    println(f);
}

New Annotation

Summary:
Author:
Mode:
Body: