[Vala] Autocasting for lambdas
- From: pancake <pancake youterm com>
- To: Vala ML <vala-list gnome org>
- Subject: [Vala] Autocasting for lambdas
- Date: Thu, 23 Apr 2009 11:33:28 +0200
It is possible to reduce this code?
gw.graph.nodes.sort(
(a,b) => {
Grava.Node *na = a;
Grava.Node *nb = b;
return (int)(na->y - nb->y);
}
);
I would like to be able to drop or move the (Grava.Node *) definition
somewhere else with <Grava.Node> or so instead of storing two local
variables.
Thanks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]