Manuel Mohr <manuel.m...@kit.edu> wrote on 01/17/2013 04:43:18 AM:
> why is the following program valid X10?
>
> public class Test {
> public static def main(Array[String]) {
> val v = GlobalRef[Cell[Int]](new Cell[Int](100));
> at (v) Console.OUT.println(v());
> }
> }
>
> The language specification clearly states that "the PlaceExp must be an
> expression of type Place or some subtype". GlobalRef is clearly not a
> subtype of Place. Is this supported for backwards compatibility
> reasons? If yes, are there plans to deprecate it?
>
The language specification is missing a syntax sugar for GlobalRef.
GlobalRef has a home property of type Place. at (v) is a shorthand for at
(v.home).
--dave
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users