The big things I had to do right off the top:

1.  Get rid of Rails.  For example, I changed:
  public static def main(args:Rail[String]!):Void {
to
  public static def main(args:Array[String](1)):Void {

2.  Change pattern matching from parens to square brackets.  For example:
    for ((i) in prefixSumArray) {
changes to
    for ([i] in prefixSumArray) {

3.  Get rid of global - change them to static.

4.  Get rid of ! 

5.  If you have a lot of references to objects between multiple places, like 
lots of
        at (bob.home) bob.foo()
...then you are going to have to use global references

Thanks,
Dave

On Nov 8, 2010, at 2:35 PM, Igor Peshansky wrote:

> Christoph Pospiech <christoph.pospi...@de.ibm.com> wrote on 11/08/2010 
> 02:24:30 PM:
> 
>> Hi,
>> 
>> my x10 program starts with
>> 
>> import x10.util.Timer;
>> import x10.io.Console;
>> 
>> Both lines are flagged as error with X10 v.2.1, but were correct with 
> X10 v. 
>> 2.0.6 ?
>> 
>> Why ?
> 
> You probably have another syntax error somewhere in the middle of the 
> file,
> and the parser gets confused and backtracks all the way to the beginning.
> 
> Since the errors are reported in line number order, you see this one 
> first.
> Look further down the error list to see if any of those make more sense.
> 
> Just to be clear, these statements are still correct in 2.1.
>        Igor
> -- 
> 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" -- 
> Xun Zi
> 
> 
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a 
> Billion" shares his insights and actions to help propel your 
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users

---
David E. Hudak, Ph.D.          dhu...@osc.edu
Program Director, HPC Engineering
Ohio Supercomputer Center
http://www.osc.edu










------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to