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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4e180de737833224 X-Google-Attributes: gid103376,public From: "Norman H. Cohen" Subject: Re: Ada Java question => clarification Date: 1997/02/28 Message-ID: <33174B1A.5353@watson.ibm.com>#1/1 X-Deja-AN: 222258413 References: <33167E7E.4351@fn3.freenet.tlh.fl.us> <33174046.4A25@fn3.freenet.tlh.fl.us> Organization: IBM Thomas J. Watson Research Center Reply-To: ncohen@watson.ibm.com Newsgroups: comp.lang.ada Date: 1997-02-28T00:00:00+00:00 List-Id: Kendal Van Dyke wrote: > Ok, after changing the case statement to an if statement, I STILL had to > use the full name (java.awt.event.[up, down, left, right, etc]) in order > for it to work right, even with the with and use clauses for > java.awt.event . Don't know if that's a big deal or not....just extra > typing for me at the least! What you need is a with clause for java.awt.event and a use clause for java.awt. A use clause for java.awt.event allows you to abbreviate java.awt.event.up as up, but not as event.up. A use clause for java.awt allows you to abbreviate java.awt.event as event, which is what you are doing when you write event.up. -- Norman H. Cohen mailto:ncohen@watson.ibm.com http://www.research.ibm.com/people/n/ncohen