Commit f668ee20 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

support using lambda expressions with instance delegates

2008-04-20  Juerg Billeter  <j@bitron.ch>

	* gobject/valaccodegenerator.vala: support using lambda expressions
	  with instance delegates

svn path=/trunk/; revision=1284
parent 8994b09c
2008-04-20 Jürg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: support using lambda expressions
with instance delegates
2008-04-20 Jürg Billeter <j@bitron.ch>
* vapi/packages/gtk+-2.0/: fix gtk_*_store_set_column_types
......
......@@ -3227,6 +3227,10 @@ public class Vala.CCodeGenerator : CodeGenerator {
}
public override void visit_lambda_expression (LambdaExpression l) {
// use instance position from delegate
var dt = (DelegateType) l.expected_type;
l.method.cinstance_parameter_position = dt.delegate_symbol.cinstance_parameter_position;
var old_temp_vars = temp_vars;
var old_temp_ref_vars = temp_ref_vars;
temp_vars = new ArrayList<LocalVariable> ();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment