Hello All, I want to ask about GlobalRef in X10.
Please see the following code. --------------------------------------------------- def methodA( b:GlobalRef[classA] ) { // b is an instance of classA val a = new Rail[String](1); at( b ) { a(0) = b().fieldA; // fieldA is a filed of classA and its type is String } Console.OUT.println(a(0)); // a(0) is still null } --------------------------------------------------- How can I change an element a(0) into fieldA? If you use "at" to move to the place which has variable "b", you can't change variable "a" in the original place. Regards, Master Course, Graduate School of Information Science and Technology, The University of Tokyo Seisei Itahashi ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users