Richard Gomes <rgomes1...@yahoo.co.uk> wrote on 02/26/2011 02:10:59 PM:

> I've added a not to http://jira.codehaus.org/browse/XTENLANG-731

Richard,

apply() is replaced by operator this().  So now the name "apply" carries
no special meaning.  If you were relying on the operator-like behavior of
the apply() method in your code, you should change it to the operator.

The expected upgrade pattern is: "def apply() { B }" becomes
"def apply() { B } final operator this() { apply() }" (this will also
retain the previous behavior when overriding apply() in subclasses).
This can be optimized if you know that apply() is never invoked 
explicitly.

Hope this helps,
        Igor
-- 
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
X10: Parallel Productivity and Performance (http://x10-lang.org/)
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
"I hear and I forget.  I see and I remember.  I do and I understand" -- 
Xun Zi


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to