On 02/03/2011 05:48 AM, %u wrote:
When implemented, will uniform call syntax work for the "this"
object even if not specified?

For example, will foo() get called in the following example?

void foo(A a, int b) {}

class A {
     void test() {
         this.foo(10);
         foo(10);
     }
}


Thanks

Do you mean in the last line? I hope not! Adding implicit reformulation on implicit reformulation does not help & making code readable.
    foo(10) --> this.foo(10) --> foo(this, 10)
Anyway, a sensible limit can be placed in that foo is not a function member of A, (hopefully) preventing the first rewriting step to occur.

Denis
--
_________________
vita es estrany
spir.wikidot.com

Reply via email to