Alex Martelli wrote: > Bjoern Schliessmann <[EMAIL PROTECTED]> > wrote:
>> Mh, strange, I personally like to use "this.a" in C++, to make >> clear I use an instance variable. > That would be nice, unfortunately your C++ compiler will refuse > that, and force you to use this->a instead;-). Sure, thanks. Before I last used C++ I was forced to use Java -- where I would write "this.<member>". ;) > Many programming shops use naming conventions instead, such as > my_a or a_ (trailing underscore for member-variables) -- I've even > seen the convention this_a which IMHO is silly (at that point you > might as well use this->a and avoid the 'convention'!-). ACK. > For the curious: the explicit-self idea is essentially taken from > Modula-3, a sadly now forgotten language which still had an impact > on the history of programming. Mh, I'm going to read some about this one. Regards, Björn -- BOFH excuse #4: static from nylon underwear -- http://mail.python.org/mailman/listinfo/python-list