comp.lang.ada
 help / color / mirror / Atom feed
From: Kendal Van Dyke <kendal@fn3.freenet.tlh.fl.us>
Subject: Re: Ada Java question  => oops!!
Date: 1997/02/28
Date: 1997-02-28T00:00:00+00:00	[thread overview]
Message-ID: <3317420B.38AE@fn3.freenet.tlh.fl.us> (raw)
In-Reply-To: bbalfour-2802971019510001@stmac0088.std.caci.com


> >...You can
> >do any of the following:
> >  1) use the full name "java.awt.event" instead of "event";
> >  2) drop the use of "event" in "event.UP" and say simply "UP";

OOPS! I didn't realize that earlier in my package spec I had defined a
new type (TYPE DIRECTION IS (up, down, left, right);). Because of the
new type I had defined, the compiler thought that when I referred to up,
down, left, or right that I was referring to something in that new type
I had defined, and NOT java.awt.event.up, down, left, or right.....Which
is why I had to specify the full java.awt.event name. I took the new
type I had defined out of the spec and bingo! I could access up, down,
left, and right without the full name.

So, my oversight....no compiler bugs or anything like that. Please
forgive me, I'm still learning! Thanks again for the help from everyone.
-- 
    *.........................................*
    .                |/                       .
    .                |\ENDAL                  .
    . WWW   => http://www.cs.fsu.edu/~vandyke .
    . EMail => vandyke@cs.fsu.edu             .
    . Pager => (904) 297-6658                 .
    .                                         .
    *.........................................*




  parent reply	other threads:[~1997-02-28  0:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-26  0:00 Ada Java question Kendal Van Dyke
1997-02-27  0:00 ` Tucker Taft
1997-02-28  0:00   ` Ada Java question => clarification Kendal Van Dyke
1997-02-28  0:00     ` Tucker Taft
1997-02-28  0:00       ` Brad Balfour
1997-02-28  0:00         ` Kendal Van Dyke
1997-02-28  0:00           ` Norman H. Cohen
1997-03-01  0:00             ` David Taylor
1997-03-02  0:00               ` Robert Dewar
1997-03-06  0:00                 ` David Taylor
1997-03-08  0:00                   ` tagged type auto-"Use", was " Tom Moran
1997-03-10  0:00                     ` Dennis Reimer
1997-03-09  0:00                   ` Robert Dewar
1997-03-09  0:00                     ` Larry Kilgallen
1997-03-09  0:00                       ` Robert Dewar
1997-03-15  0:00                         ` Matthew Heaney
1997-03-01  0:00           ` Fergus Henderson
1997-02-28  0:00         ` Kendal Van Dyke [this message]
1997-03-02  0:00         ` Robert Dewar
1997-03-03  0:00           ` Brad Balfour
1997-03-05  0:00             ` Robert Dewar
1997-03-05  0:00               ` Brad Balfour
1997-02-28  0:00 ` Ada Java question Tom Halliley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox