From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1958806719278055 X-Google-Attributes: gid103376,public From: Tom Halliley Subject: Re: Another Ada Java question Date: 1997/03/02 Message-ID: <3319BCC3.175A@sd.aonix.com>#1/1 X-Deja-AN: 222634430 Sender: news@thomsoft.com (USENET News Admin @flash) X-Nntp-Posting-Host: case References: <33175063.7428@fn3.freenet.tlh.fl.us> Organization: Aonix Newsgroups: comp.lang.ada Date: 1997-03-02T00:00:00+00:00 List-Id: 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