I am reading the language specification, and in the section 11.6 I see the
following:
------------------------------------------------------------------------------------------
The syntax for method invocations is ambiguous. ob.m() could either be the
invocation of a method named m on object ob, or the application of a function
held in a field ob.m. If both are defined on the same class, X10 resolves ob.m()
to the invocation of the method. If the application of a function in a field is
desired,
use an alternate syntax which makes the intent clear to X10, such as (ob.m)().
------------------------------------------------------------------------------------------
Just wonder, wouldn't it be easier for everybody if this sort of ambiguity was
simply prohibited (before a lot of code is written)?
I don't see why anybody would have a problem with the requirement to come up
with different names for different things.
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users