1 |
keri 10/11/05 23:44:34 |
2 |
|
3 |
Added: tuprolog-2.3.0_alpha-generics.patch |
4 |
Log: |
5 |
Add generics patch to fix tuprologx.AnotherList method call on Term lists |
6 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-lang/tuprolog/files/tuprolog-2.3.0_alpha-generics.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tuprolog/files/tuprolog-2.3.0_alpha-generics.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tuprolog/files/tuprolog-2.3.0_alpha-generics.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: tuprolog-2.3.0_alpha-generics.patch |
15 |
=================================================================== |
16 |
--- tuprolog.orig/src/alice/tuprologx/pj/test/AnotherList.java 2010-01-21 21:29:48.000000000 +1300 |
17 |
+++ tuprolog/src/alice/tuprologx/pj/test/AnotherList.java 2010-11-06 12:39:28.000000000 +1300 |
18 |
@@ -47,7 +47,7 @@ |
19 |
AnotherList lists = PJ.newInstance(AnotherList.class); |
20 |
List<Int> l=lists.nil(); // Creating an empty list [] |
21 |
for (int i=10;i>0;i--){ |
22 |
- l=lists.add(new Int(i),l); // Adding elements...[1,2,3,4,5,6,7,8,9,10] |
23 |
+ l=lists.<Int,List<Int>,List<Int>>add(new Int(i),l); // Adding elements...[1,2,3,4,5,6,7,8,9,10] |
24 |
} |
25 |
Var<List<Int>> l1 = new Var<List<Int>>("X"); |
26 |
Var<List<Int>> l2 = new Var<List<Int>>("Y"); |