On Tuesday 01 June 2010 02:57:46 pm David P Grove wrote:
> I would try it first avoiding the use of the typedef ArrayD.  We sometimes
> have problems with typedefs not always working the same way as the code
> would have worked without the typedef.
> 

David,

I can confirm this, but possibly not in the way you would like it.

Commenting the offending function ArrayD_add out, my code was compiling and 
working correctly. Replacing ArrayD with Array[double] where appropriate, the 
code did no longer compile. The error was in a different part of the code. The 
compiler was complaining that it could not set an array element of type 
x10.lang.Double with a value of type x10.lang.Double{self == 0.0}.

I lacked the patience to dig into that and thus reverted to the old state 
("git reset --hard HEAD"). I would like to stay with the ArrayD type -- 
unless, of course, if you ask me to provide more details on the above 
situation.

Knowing typedefs from other languages like C, C++ or Fortran, they are 
supposed to make the code more readable and not influence the language syntax 
checker. Is this different with X10 ?
-- 

Mit freundlichen Grüßen / Kind regards

Dr. Christoph Pospiech
High Performance & Parallel Computing
Phone:  +49-351 86269826
Mobile: +49-171-765 5871
E-Mail: christoph.pospi...@de.ibm.com
-------------------------------------
IBM Deutschland GmbH
Vorsitzender des Aufsichtsrats: Erich Clementi 
Geschäftsführung: Martin Jetter (Vorsitzender), 
Reinhard Reschke, Christoph Grandpierre, 
Klaus Lintelmann, Michael Diemer, Martina Koederitz 
Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 
14562 WEEE-Reg.-Nr. DE 99369940


------------------------------------------------------------------------------

_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to