I was just referring to the Adder class that you wrote in your previous message yourself. So, I didn't have to attach any x10 files. I had just attached the generated java file. The java file is too large to inline in a message. So, I created a link <http://drop.io/s1digab/asset/adder-java> to it.
On Tue, Jul 20, 2010 at 4:33 PM, Yoav Zibin <yoav.zi...@gmail.com> wrote: > You can't attach files in the mailing list, so please inline those files > inside your email. > Please send your X10 program. > > On Tue, Jul 20, 2010 at 3:58 PM, Mohsen Vakilian <reprogram...@gmail.com > >wrote: > > > I get the following error messages when I compiler the class Adder you > > wrote > > below. > > > > x10c: ---------- > > 1. ERROR in bin/Adder.java (at line 51) > > T id$2, > > ^ > > T cannot be resolved to a type > > ---------- > > 2. ERROR in bin/Adder.java (at line 52) > > T id$3); > > ^ > > T cannot be resolved to a type > > ---------- > > 2 problems (2 errors) > > x10c: Non-zero return code: 255 > > 2 errors. > > > > I've attached the generated Adder.java file. > > > > Thanks > > > > On Tue, Jul 20, 2010 at 1:35 PM, Yoav Zibin <yoav.zi...@gmail.com> > wrote: > > > > > It's not an easy fix - there are multiple bugs in the collecting-finish > > > construct. > > > I opened a JIRA so you can follow our progress. > > > As a work-around, use a reducer without generic parameters, e.g., > > > > > > class Adder { > > > static abstract class A implements Reducible[Int] {} > > > def test2(r:A) { > > > val x = finish (r) { offer 5;}; > > > } > > > } > > > > > > > > > > > > On Tue, Jul 20, 2010 at 11:13 AM, Mohsen Vakilian < > > reprogram...@gmail.com > > > >wrote: > > > > > > > Igor, > > > > > > > > The copy of the message in my sent box has the file attached to it. > > But, > > > it > > > > looks like the the mailing list has dropped it. This is why I sent > > > another > > > > message with the code in the body of the message. > > > > > > > > On Tue, Jul 20, 2010 at 11:06 AM, Igor Peshansky <ig...@us.ibm.com> > > > wrote: > > > > > > > > > Mohsen Vakilian <reprogram...@gmail.com> wrote on 07/19/2010 > > 06:41:20 > > > > PM: > > > > > > > > > > > I built the x10 compiler from trunk today (7/19) and used it to > > > compile > > > > > the > > > > > > attached piece of code. The code implements a class that is > > > > > parameterized by > > > > > > a type that implements the Reducible interface. But, there are > > > problems > > > > > when > > > > > > using the reducer in the finish statement. I've attached the > error > > > > > messages > > > > > > that I get from the compiler. Could any one help me in fixing my > > > > > program? > > > > > > > > > > Mohsen, > > > > > > > > > > You seem to be missing an attachment (Reducer.x10). The error > > > indicates > > > > > that > > > > > you may have forgotten the type bound ({T <: Reducible[T]}) on a > > > generic, > > > > > but > > > > > I would have to see the code to know for sure. > > > > > Igor > > > > > P.S. x10.lang.* is auto-imported, you don't need to import it > > > explicitly. > > > > > You do need to import x10.util.*. > > > > > > > > > > > [attachment "compile-error.txt" deleted by Igor > > Peshansky/Watson/IBM] > > > > > -- > > > > > Igor Peshansky (note the spelling change!) > > > > > IBM T.J. Watson Research Center > > > > > X10: Parallel Productivity and Performance (http://x10-lang.org/) > > > > > XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/) > > > > > "I hear and I forget. I see and I remember. I do and I > understand" > > -- > > > > > Confucius > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > This SF.net email is sponsored by Sprint > > > > > What will you do first with EVO, the first 4G phone? > > > > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > > > _______________________________________________ > > > > > X10-users mailing list > > > > > X10-users@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/x10-users > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > This SF.net email is sponsored by Sprint > > > > What will you do first with EVO, the first 4G phone? > > > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > > _______________________________________________ > > > > X10-users mailing list > > > > X10-users@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/x10-users > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > This SF.net email is sponsored by Sprint > > > What will you do first with EVO, the first 4G phone? > > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > _______________________________________________ > > > X10-users mailing list > > > X10-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/x10-users > > > > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ > > X10-users mailing list > > X10-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/x10-users > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > X10-users mailing list > X10-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/x10-users > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users