Basic inheritance question

Dan Bishop danb_83 at yahoo.com
Mon Jan 7 00:59:51 CET 2008


On Jan 5, 4:53 am, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n... at spamgourmet.com> wrote:
> MartinRineh... at gmail.com wrote:
> > Jeroen Ruigrok van der Werven wrote:
> >> self.startLoc = start
> >> self.stopLoc = stop
>
> > Thanks! Of course it should. Old Java habits die slowly.
>
> That's not really a Java habit. In Java and C++, personally I like
> to write
>
> this.startLoc = start
> this.stopLoc = stop
>
> It makes much clearer what a field and what a "normal" variable is
> in those languages.

My employer has us use the "m_" convention.

I wonder why Bjarne made "this->" optional in the first place.



More information about the Python-list mailing list