From: Georg Bauhaus <rm.tsoh.plus-bug.bauhaus@maps.futureapps.de>
Subject: Re: Interface specification in Ada
Date: Thu, 12 Jun 2008 10:37:07 +0200
Date: 2008-06-12T10:37:11+02:00 [thread overview]
Message-ID: <4850e037$0$7543$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <g2pfnk$6p2$1@aioe.org>
Dennis Hoppe wrote:
> Indeed Java relieves me of state "this".
When I started writing Java many years ago, I too thought that
like in the Java books, when I want to name an object's
component it is not neccessary to refer to the object.
So don't do that, leave out "this".
But now I find myself writing "this.a" and "this.b" all the
time, to make sure I can easily see what "a" actually stands
for: does it name a component or does it name a method parameter
or local variable? With "this" there is no question. There is
almost never a question in Ada because you always name the
object in some way.
prev parent reply other threads:[~2008-06-12 8:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-11 12:46 Interface specification in Ada Dennis Hoppe
2008-06-11 13:04 ` christoph.grein
2008-06-11 15:02 ` Georg Bauhaus
2008-06-11 16:34 ` Robert A Duff
2008-06-11 21:23 ` Dennis Hoppe
2008-06-12 8:37 ` Georg Bauhaus [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox