[Vala] Generics and Contract Programming
- From: Chris Molozian <chris cmoz me>
- To: vala-list gnome org
- Subject: [Vala] Generics and Contract Programming
- Date: Fri, 24 Jun 2011 11:41:14 +0100
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]