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;-).
Yes, as Strostrup admits, "this" should have been a reference. Early versions of C++ didn't have references. One side effect of that mistake was the "delete(this)" idiom, which does not play well with inheritance. But that's a digression here. John Nagle -- http://mail.python.org/mailman/listinfo/python-list