2008-04-21 Juerg Billeter <j@bitron.ch>
* vala/valadynamicmethod.vala: generate unique names for wrapper
methods, fixes bug 529251
svn path=/trunk/; revision=1298
+2008-04-21 Jürg Billeter <j@bitron.ch>
+
+ * vala/valadynamicmethod.vala: generate unique names for wrapper
+ methods, fixes bug 529251
+
2008-04-21 Jürg Billeter <j@bitron.ch>
* vapi/packages/libglade-2.0/: fix glade_xml_construct binding,
public InvocationExpression invocation { get; set; }
private string cname;
+ static int dynamic_method_id;
public DynamicMethod (DataType dynamic_type, string name, DataType return_type, SourceReference? source_reference = null) {
this.dynamic_type = dynamic_type;
public override string get_default_cname () {
// return cname of wrapper method
if (cname == null) {
- // FIXME support multiple dynamic methods with the same name
- cname = "_dynamic_%s".printf (name);
+ cname = "_dynamic_%s%d".printf (name, dynamic_method_id++);
}
return cname;
}