Dear Yoav,

     Thank you very much, you were right I forgot to put the braces in the
for loop (i:Point)--->(*(i)*:Point), when I ran it, I got thrown exceptions
so I guessed that was because of non-authorized memory accesses so I changed
the definition of the function to *static*, and it worked pretty well.
Do you have a more detailed explanation?

Thank you again Yoav.

On Sun, Jul 4, 2010 at 11:21 AM, Yoav Zibin <yoav.zi...@gmail.com> wrote:

> This error complains about the second Int parameter
>
> On Sunday, July 4, 2010, mohammed elsaeedy
> <mohammed.elsae...@kaust.edu.sa> wrote:
> > Dear Yoav,
> >
> >
> >     The compiler should be able to infer that my array "a" is of one
> > dimension, and I tried your proposal, and it gave me an error too
> >
> >
> > "*Method myPrint(a:
> > x10.array.DistArray[x10.lang.Int]{self.dist.region.rank==1},
> > i: x10.lang.Int) in Hello{self==h, h.home==_place17626731, h!=null}
> cannot
> > be called with arguments (x10.array.DistArray[x10.lang.Int]{self==a,
> > a.dist.region.rank==1}, x10.array.Point{self==i}); Invalid Parameter.
> >      expected type: x10.lang.Int
> >      found: x10.array.Point{self==i}  *"
> >
> > I think the problem is in "*self==a*". Am I missing something?
> >
> > Thank you.
> > Regards,
> > Mohammed
> >
> >
> > On Sun, Jul 4, 2010 at 10:26 AM, Yoav Zibin <yoav.zi...@gmail.com>
> wrote:
> >
> >> The parameter is of type
> >>
> >> DistArray[int](1)
> >> While the argument is
> >>
> >> DistArray[int]
> >>
> >> Thanks,
> >> Yoav Zibin
> >>
> >> On 04/07/2010, at 09:14, mohammed elsaeedy <
> mohammed.elsae...@kaust.edu.sa
> >>  > wrote:
> >>
> >> > DistArray[int](1)
> >>
> >>
> ------------------------------------------------------------------------------
> >> 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
> >>
> >
> >
> >
> > --
> > Thank you for your concern.
> > Regards,
> > Mohammed El Sayed
> >
> ------------------------------------------------------------------------------
> > 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
>



-- 
Thank you for your concern.
Regards,
Mohammed El Sayed
------------------------------------------------------------------------------
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

Reply via email to