vala r1298 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1298 - in trunk: . vala
- Date: Mon, 21 Apr 2008 20:57:39 +0100 (BST)
Author: juergbi
Date: Mon Apr 21 19:57:39 2008
New Revision: 1298
URL: http://svn.gnome.org/viewvc/vala?rev=1298&view=rev
Log:
2008-04-21 Juerg Billeter <j bitron ch>
* vala/valadynamicmethod.vala: generate unique names for wrapper
methods, fixes bug 529251
Modified:
trunk/ChangeLog
trunk/vala/valadynamicmethod.vala
Modified: trunk/vala/valadynamicmethod.vala
==============================================================================
--- trunk/vala/valadynamicmethod.vala (original)
+++ trunk/vala/valadynamicmethod.vala Mon Apr 21 19:57:39 2008
@@ -32,6 +32,7 @@
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;
@@ -47,8 +48,7 @@
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]