I have no class

Dave Angel davea at davea.name
Mon Nov 24 06:11:41 CET 2014


On 11/23/2014 11:21 PM, Steven D'Aprano wrote:

> In some of these languages, the use of "this/self/me" is optional, but
> I'm not aware of *any* OOP language where there is no named reference to
> the current object at all.
>

The case I found astounding in C++ was in the initializer list where the 
line

     value:value

would assume that the first one was  this->value, and the second was a 
local named value (usually an argument to the constructor).


-- 
DaveA



More information about the Python-list mailing list