* Another Ada Java question
@ 1997-02-28 0:00 Kendal Van Dyke
1997-03-02 0:00 ` Tom Halliley
0 siblings, 1 reply; 2+ messages in thread
From: Kendal Van Dyke @ 1997-02-28 0:00 UTC (permalink / raw)
In Java there are some functions and procedures that are called as
this.[something] . What is the equivalent of this in Ada Java?
--
*.........................................*
. |/ .
. |\ENDAL .
. WWW => http://www.cs.fsu.edu/~vandyke .
. EMail => vandyke@cs.fsu.edu .
. Pager => (904) 297-6658 .
. .
*.........................................*
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Another Ada Java question
1997-02-28 0:00 Another Ada Java question Kendal Van Dyke
@ 1997-03-02 0:00 ` Tom Halliley
0 siblings, 0 replies; 2+ messages in thread
From: Tom Halliley @ 1997-03-02 0:00 UTC (permalink / raw)
Kendal Van Dyke wrote:
>
> In Java there are some functions and procedures that are called as
> this.[something] . What is the equivalent of this in Ada Java?
Roughly, you'd call:
[something](this, ...);
meaning that the [something] method equivalent in AdaJava is a
procedure or function, where the first parameter (usually) is the
object to be operated on.
For example,
fileName = this.getName();
in Java becomes
fileName := java.io.file.getName(this);
in AdaJava. Of course, "this" is not an implicitly declared object
in Ada, rather, it would have to be declared, usually as a parameter
to the subprogram you're in.
TomH
-------------------------------------------------------------------
J. Thomas Halliley | Principal Software Engineer | 619.824.0348
tomh@aonix.com | Aonix | San Diego, CA
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-03-02 0:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-02-28 0:00 Another Ada Java question Kendal Van Dyke
1997-03-02 0:00 ` Tom Halliley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox