On 8/24/2011 7:27 AM, Andreas Zwinkau wrote:
> This little program gives me a strange error. I tried various
> optimization and debug flags with the same result. Can you reproduce that?
>
> class Main
> {
>       public static def main(args:Array[String])
>       {
>               val x = int.parse(args(0));
>       }
> }
>
> $ x10c++ -version
> x10c++ version 2.2.0
> Polyglot compiler toolkit version 3.2.0 (2010-06-03 19:23:58)
> $ x10c++ Main.x10
> /afs/info.uni-karlsruhe.de/user/zwinkau/dev/invadeX10/integration_invasive/src/Main.x10:6:
> Cannot get LocalDef before type-checking local variable.
> 1 error.
Hmm. No. I just tried on a MacOs server (serenity), same x10c++ -version 
string as you show, and it compiles with 1 dynamically checked call 
(because of args:Array[String] instead of args:Array[String](1)).



------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to