Uniform call syntax for implicit this.

Daniel Gibson metalcaedes at gmail.com
Thu Feb 3 09:43:12 PST 2011


Am 03.02.2011 15:57, schrieb Michel Fortin:
> On 2011-02-02 23:48:15 -0500, %u <dflgkd at sgjds.com> said:
> 
>> 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);
>>     }
>> }
> 
> I think it should work.
> 
> 

I think foo(10) should *not* be equivalent to foo(this, 10).


More information about the Digitalmars-d mailing list