Jim LaGrone <[email protected]> wrote on 08/24/2009 08:03:15 PM:
> After doing "svn up" I am getting this message with code that compiled
> before:
>
> State.x10:12: method public State.getUserParameters(x10.lang.String):
> x10.lang.Void must be declared as a proto method since it is called on
> a receiver State{self==State#this}.this with a proto type.
> 1 error.
>
>
> The call is from the constructor for State:
>
> public def this( file_name: String){
> clk = new MyClock();
> getUserParameters(file_name);
> }
>
>
> and method starts with
>
> public def getUserParameters(var param_file_name:String ): Void{
>
>
> Any ideas?
Jim,
We are in the process of implementing X10 2.0 semantics in SVN HEAD.
There will be destabilizing changes.
For more details on the proto types, please see the recent discussion
on the x10-core list. In short, the message means that the instance
method in question is called from the constructor before the object is
fully initialized, and thus has restrictions on what it can access.
If you wish to stay with the X10 1.7 semantics, please build off the
x10-17 branch, or wait for the imminent 1.7.6 release.
Igor
--
Igor Peshansky (note the spelling change!)
IBM T.J. Watson Research Center
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
X10: Parallel Productivity and Performance (http://x10.sf.net/)
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users