[Vala] Generics and Contract Programming



Hey,

I'm unable to figure out how to write comparable code to Vala in Genie. How do I write Generic <http://live.gnome.org/Vala/Tutorial#Generics> and Contract code <http://live.gnome.org/Vala/Tutorial#Assertions_and_Contract_Programming> in Genie? e.g.

static void foo<T>(ref string[] args, T opts, ...)
        requires (args.length > 1) {
    // do something
}

Regards,

Chris



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]